From: Oleg Broytman Date: Sun, 11 Dec 2022 21:51:59 +0000 (+0300) Subject: Feat(submodules/remove): New way to remove X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=88545271297391f40bdcc87ab491cbc41d0f78e0;hp=d542fe583dbdee0911cc377758ad55cc47b46b7c;p=git-scripts.git Feat(submodules/remove): New way to remove --- diff --git a/submodules/remove b/submodules/remove index 92efc14..685fbb5 100755 --- a/submodules/remove +++ b/submodules/remove @@ -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"