git-fetch-pack: really do not ask for funny refs
[git.git] / git-reset.sh
index 2086d26..6c9e58a 100755 (executable)
@@ -1,11 +1,9 @@
 #!/bin/sh
-. git-sh-setup || die "Not a git archive"
 
-usage () {
-       die 'Usage: git reset [--mixed | --soft | --hard]  [<commit-ish>]'
-}
+USAGE='[--mixed | --soft | --hard]  [<commit-ish>]'
+. git-sh-setup
 
-tmp=/var/tmp/reset.$$
+tmp=${GIT_DIR}/reset.$$
 trap 'rm -f $tmp-*' 0 1 2 3 15
 
 reset_type=--mixed