From 65fc5efdec7a620497141ae266c9f0583dd58879 Mon Sep 17 00:00:00 2001 From: Julian Prein Date: Mon, 27 Jun 2022 03:21:15 +0200 Subject: [PATCH] git:submodule-rm: Update to current .git structure Update the function to use the current `.git/modules/` structure, by only using the basename of the path. I am not sure when this was changed and too lazy right now to find it out. --- .config/zsh/autoload/git/git-submodule-rm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/zsh/autoload/git/git-submodule-rm b/.config/zsh/autoload/git/git-submodule-rm index 2f5685a..312e232 100755 --- a/.config/zsh/autoload/git/git-submodule-rm +++ b/.config/zsh/autoload/git/git-submodule-rm @@ -23,7 +23,7 @@ for arg in "$@"; do # argument has to exist in repo [[ -e "$toplevel/$arg_from_git" ]] || continue # has to be a submodule - [[ -e "$toplevel/.git/modules/$arg_from_git" ]] || continue + [[ -e "$toplevel/.git/modules/${1:t}" ]] || continue git submodule deinit -f "$arg" echo "command rm -rf \"$toplevel/.git/modules/$arg_from_git\""