Browse files

Fix gwip alias in git plugin when no files to rm

  • Loading branch information...
1 parent ca90021 commit a869ec9bc848a011a3068fbaed52b4cbd04681aa Benoit Dubertret committed Mar 17, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 plugins/git/git.plugin.zsh
View
2 plugins/git/git.plugin.zsh
@@ -149,7 +149,7 @@ function work_in_progress() {
fi
}
# these alias commit and uncomit wip branches
-alias gwip='git add -A; git ls-files --deleted -z | xargs -0 git rm; git commit -m "--wip--"'
+alias gwip='git add -A; git ls-files --deleted -z | xargs -r0 git rm; git commit -m "--wip--"'
alias gunwip='git log -n 1 | grep -q -c "\-\-wip\-\-" && git reset HEAD~1'
# these alias ignore changes to file

0 comments on commit a869ec9

Please sign in to comment.