]> git.phdru.name Git - git-scripts.git/blobdiff - submodules/remove
Feat(submodules/remove): New way to remove
[git-scripts.git] / 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"