Skip to content

Commit

Permalink
tear down with a revert
Browse files Browse the repository at this point in the history
  • Loading branch information
James Halliday committed Mar 31, 2013
1 parent 192149a commit 7c61d7f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 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.