From 5ac6219f23452945a6b819e56c7b32d9ae87fd7f Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Sat, 8 Apr 2023 18:45:50 +0300 Subject: [PATCH] Fix(submodules/remove): Fix subcommand --- submodules/remove | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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" -- 2.39.2