]> git.phdru.name Git - git-scripts.git/commitdiff
Feat(submodules/remove): New way to remove
authorOleg Broytman <phd@phdru.name>
Sun, 11 Dec 2022 21:51:59 +0000 (00:51 +0300)
committerOleg Broytman <phd@phdru.name>
Sun, 11 Dec 2022 21:53:50 +0000 (00:53 +0300)
submodules/remove

index 92efc14be3302e4621047e87c1b099b1f36a9a9a..685fbb5477ec2cb368c5c63e88a3b7a57b496d00 100755 (executable)
@@ -20,6 +20,6 @@ if [ -z "$path" ]; then
     exit 1
 fi
 
-git submodule deinit -f -- "$path"
+git rm "$path"
 rm -rf .git/modules/"$name"
-exec git rm -rf "$path"
+exec git config --remove-section submodule."$name"