Permalink
Browse files

Remove sleep from git-null

It is reversible so there is no need to be cautious.
  • Loading branch information...
1 parent 144aa7b commit f2fe4641d129983ab2de337ee4a7999f4b6744a8 @rosslagerwall committed Aug 18, 2012
Showing with 2 additions and 4 deletions.
  1. +2 −4 git-null
View
@@ -18,8 +18,6 @@ if [ -n "$OUTPUT" ]; then
exit 1
fi
-echo "Updating `pwd` to the *null* revision in 10 seconds."
-sleep 10
-find . -not -wholename './.git/*' -not -wholename './.git' \
- -not -wholename '.' -delete
+echo "Updating `pwd` to the *null* revision."
+find . ! -path './.git*' -delete
echo "To go back to the previous state, run: git reset --hard"

0 comments on commit f2fe464

Please sign in to comment.