]> git.phdru.name Git - git-scripts.git/commitdiff
Fix(submodules/remove): Fix subcommand
authorOleg Broytman <phd@phdru.name>
Sat, 8 Apr 2023 15:45:50 +0000 (18:45 +0300)
committerOleg Broytman <phd@phdru.name>
Sat, 8 Apr 2023 15:45:50 +0000 (18:45 +0300)
submodules/remove

index 4b38d1ae96e6469747cf95ffd36a6a09ca90bda1..90cb02f6fc10904725a88f461df2c99902706bea 100755 (executable)
@@ -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"