Permalink
Browse files

tear down with a revert

  • Loading branch information...
1 parent 192149a commit 7c61d7f0c0ae5c7a6f06c0485c4e31374a617a82 @substack committed Mar 31, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 test/repo/teardown.sh
@@ -1,5 +1,5 @@
#!/bin/bash
if test $(basename $PWD)="repo" -a -d .git; then
- git reset --hard $(git log | grep ^commit | tail -n1 | sed 's/^commit //')
+ git revert -n $(git log | grep ^commit | tail -n1 | sed 's/^commit //')
rm -rf .git
fi

0 comments on commit 7c61d7f

Please sign in to comment.