diff options
author | Alex Riesen <raa.lkml@gmail.com> | 2006-01-05 12:52:07 +0100 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-01-05 17:24:51 -0800 |
commit | 6ff0b1c56c451445f7dc45b652a4dc60213eac19 (patch) | |
tree | 837ecb10dadf8f3202bbfab4682ec3d952ecdc89 /git-reset.sh | |
parent | 2ccd2027b012f481018b9a95929fa8df6ce1d33f (diff) | |
download | git-6ff0b1c56c451445f7dc45b652a4dc60213eac19.tar.gz |
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>
Diffstat (limited to 'git-reset.sh')
-rwxr-xr-x | git-reset.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/git-reset.sh b/git-reset.sh index eb44ee8cc1..6c9e58ad9a 100755 --- a/git-reset.sh +++ b/git-reset.sh @@ -3,7 +3,7 @@ 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 |