.vimrc: Put new vsplit windows to the right of the current
[dotfiles.git] / bin / git-obliterate
index 25765e8b415df55247e47b45188b7f5812f8bef4..6fb165f8bb5cd2ed6232df065321229f0b472293 100755 (executable)
@@ -2,6 +2,6 @@
 # Usage: git-obliterate <file>
 # 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