From 5302a9d41298928348ba9c7da5549f8e3eddcae0 Mon Sep 17 00:00:00 2001 From: Someone Date: Sun, 24 Mar 2019 01:18:38 +0100 Subject: [PATCH] prevent empty commit deletion --- filterBranchRMFiles.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/filterBranchRMFiles.sh b/filterBranchRMFiles.sh index 35a2e6d..211d141 100755 --- a/filterBranchRMFiles.sh +++ b/filterBranchRMFiles.sh @@ -24,7 +24,7 @@ SLEEPTIME=5 echo "Will rewrite branch in repo `pwd` in ${SLEEPTIME} sec." sleep $SLEEPTIME -git filter-branch -f --prune-empty --tag-name-filter cat --index-filter ' +git filter-branch -f --tag-name-filter cat --index-filter ' git rm --cached --ignore-unmatch -q -rf '$1' ' -- --all -- 2.43.0