зеркало из https://github.com/microsoft/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 <raa.lkml@gmail.com> Signed-off-by: Junio C Hamano <junkio@cox.net>
This commit is contained in:
Родитель
2ccd2027b0
Коммит
6ff0b1c56c
|
@ -3,7 +3,7 @@
|
||||||
USAGE='[--mixed | --soft | --hard] [<commit-ish>]'
|
USAGE='[--mixed | --soft | --hard] [<commit-ish>]'
|
||||||
. git-sh-setup
|
. git-sh-setup
|
||||||
|
|
||||||
tmp=/var/tmp/reset.$$
|
tmp=${GIT_DIR}/reset.$$
|
||||||
trap 'rm -f $tmp-*' 0 1 2 3 15
|
trap 'rm -f $tmp-*' 0 1 2 3 15
|
||||||
|
|
||||||
reset_type=--mixed
|
reset_type=--mixed
|
||||||
|
|
Загрузка…
Ссылка в новой задаче