From: Oleg Broytman Date: Sat, 8 Apr 2023 15:45:50 +0000 (+0300) Subject: Fix(submodules/remove): Fix subcommand X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=5ac6219f23452945a6b819e56c7b32d9ae87fd7f;p=git-scripts.git Fix(submodules/remove): Fix subcommand --- 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"