From bed3eb2ae0cda2cb252df05d32f5e64e7f97da84 Mon Sep 17 00:00:00 2001 From: Kevin MacMartin Date: Sun, 11 Mar 2018 23:33:09 -0400 Subject: [PATCH] Use -f when deleting a gitmodule incase it hasn't been committed yet --- delete-submodule | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/delete-submodule b/delete-submodule index d860036..79575a5 100755 --- a/delete-submodule +++ b/delete-submodule @@ -10,7 +10,7 @@ else fi if [[ -d "vim/bundle/$1" ]]; then - git rm "vim/bundle/$1" + git rm -f "vim/bundle/$1" else printf '%s\n' "Couldn't run 'git rm vim/bundle/$1', does not exist" >&2 exit 1