From 09f000b66571d37de27534d6047d04b734f306a5 Mon Sep 17 00:00:00 2001 From: Tony Duckles Date: Fri, 5 Dec 2014 16:17:50 -0600 Subject: [PATCH] bin/git-obliterate: Fix quote-padding --- bin/git-obliterate | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/git-obliterate b/bin/git-obliterate index 25765e8..6fb165f 100755 --- a/bin/git-obliterate +++ b/bin/git-obliterate @@ -2,6 +2,6 @@ # Usage: git-obliterate # Rewrite repo history to completely remove all traces of a given file/directory. -file=$1 -test -z $file && echo "file required." 1>&2 && exit 1 -git filter-branch -f --index-filter "git rm -r --cached $file --ignore-unmatch" --prune-empty --tag-name-filter cat -- --all +file="$1" +test -z "$file" && echo "file required." 1>&2 && exit 1 +git filter-branch -f --index-filter "git rm -r --cached '$file' --ignore-unmatch" --prune-empty --tag-name-filter cat -- --all -- 2.47.1