X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=submodules%2Fremove;h=685fbb5477ec2cb368c5c63e88a3b7a57b496d00;hb=88545271297391f40bdcc87ab491cbc41d0f78e0;hp=92efc14be3302e4621047e87c1b099b1f36a9a9a;hpb=d542fe583dbdee0911cc377758ad55cc47b46b7c;p=git-scripts.git 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"