@matheusbsbs / matheus-bagliano / commits / 6ff0b1c56c
Fork 0

use GIT_DIR instead of /var/tmp

Not every system (will not one microsoft windows system) have /var/tmp, whereas using GIT_DIR for random temporary files is more or less established. Signed-off-by: Alex Riesen <raa.lkml@gmail.com> Signed-off-by: Junio C Hamano <junkio@cox.net>

Alex Riesen committed Jan 5, 2006 at 12:52 UTC 6ff0b1c56c451445f7dc45b652a4dc60213eac19
1 file changed +1 -1
git-reset.sh
+1 -1
@@ -3,7 +3,7 @@
3 USAGE='[--mixed | --soft | --hard] [<commit-ish>]'
4 . git-sh-setup
5
6 -tmp=/var/tmp/reset.$$
6 +tmp=${GIT_DIR}/reset.$$
7 trap 'rm -f $tmp-*' 0 1 2 3 15
8
9 reset_type=--mixed