X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=submodules%2Fremove;fp=submodules%2Fremove;h=23af550b9c80f65643013f1ae08a39e46081b8ff;hb=2c8b9c04b057a672f2a1768e389ba24b9f0a6c0e;hp=f8d6d9452ab4d2a1c898799bbaffb475b8c76ce4;hpb=f9a2c7f20a7df079c05e27680f4d6ce87f5a27c8;p=git-scripts.git diff --git a/submodules/remove b/submodules/remove index f8d6d94..23af550 100755 --- a/submodules/remove +++ b/submodules/remove @@ -22,5 +22,5 @@ if [ -z "$path" ]; then fi git rm "$path" -rm -rf .git/modules/"$name" +rm -rf "git rev-parse --git-dir"/modules/"$name" exec git config --remove-section submodule."$name"