From: Alex Riesen Date: Thu, 5 Jan 2006 11:52:07 +0000 (+0100) Subject: use GIT_DIR instead of /var/tmp X-Git-Tag: v1.0.7^2~8 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=6ff0b1c56c451445f7dc45b652a4dc60213eac19;p=git.git 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 Signed-off-by: Junio C Hamano --- diff --git a/git-reset.sh b/git-reset.sh index eb44ee8cc..6c9e58ad9 100755 --- a/git-reset.sh +++ b/git-reset.sh @@ -3,7 +3,7 @@ USAGE='[--mixed | --soft | --hard] []' . git-sh-setup -tmp=/var/tmp/reset.$$ +tmp=${GIT_DIR}/reset.$$ trap 'rm -f $tmp-*' 0 1 2 3 15 reset_type=--mixed