summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2ccd202)
raw | patch | inline | side by side (parent: 2ccd202)
author | Alex Riesen <raa.lkml@gmail.com> | |
Thu, 5 Jan 2006 11:52:07 +0000 (12:52 +0100) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Fri, 6 Jan 2006 01:24:51 +0000 (17:24 -0800) |
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>
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>
git-reset.sh | patch | blob | history |
diff --git a/git-reset.sh b/git-reset.sh
index eb44ee8cc197b7ff11159cf046b790cf693d3a72..6c9e58ad9a727ab5091b0de02e089b82cb8331dd 100755 (executable)
--- a/git-reset.sh
+++ b/git-reset.sh
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