From 88545271297391f40bdcc87ab491cbc41d0f78e0 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Mon, 12 Dec 2022 00:51:59 +0300 Subject: [PATCH] Feat(submodules/remove): New way to remove --- submodules/remove | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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" -- 2.39.5