X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=submodules%2Fremove;h=90cb02f6fc10904725a88f461df2c99902706bea;hb=684b1b0977c20fe1ffe172fc080854adc8031681;hp=4b38d1ae96e6469747cf95ffd36a6a09ca90bda1;hpb=d05bbf16af2379e816cbc5cdbf0984a13a62173d;p=git-scripts.git diff --git a/submodules/remove b/submodules/remove index 4b38d1a..90cb02f 100755 --- a/submodules/remove +++ b/submodules/remove @@ -21,6 +21,6 @@ if [ -z "$path" ]; then exit 1 fi -git rm "$path" -rm -rf "git rev-parse --git-dir"/modules/"$name" +git rm "$path" && +rm -rf "`git rev-parse --git-dir`"/modules/"$name" && exec git config --remove-section submodule."$name"