Permalink
Browse files

Merge pull request #20 from phoenixsong6/unwip

unwip: check previous commit
  • Loading branch information...
2 parents 14879c9 + 52ddf5d commit a55881b3edd3a6c01916fed887965f627db448c1 @ddollar committed Dec 28, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 git-unwip
View
@@ -1,2 +1,2 @@
#!/bin/sh
-git reset head^
+[[ `git log --format="%s" -1` -eq "wip" ]] && git reset head^

0 comments on commit a55881b

Please sign in to comment.