set TMPDIR

This commit is contained in:
Joey Hess 2013-05-03 11:56:53 -04:00
parent e23a7598e2
commit 201f802175

View file

@ -95,6 +95,9 @@ run () {
# Needs to be as short a path as possible, for ssh sockets.
GIT_ANNEX_TMP_DIR=$base/tmp
export GIT_ANNEX_TMP_DIR
# /tmp probably doesn't exist, so also use it as TMPDIR
TMPDIR=$GIT_ANNEX_TMP_DIR
export TMPDIR
if $cmd test "$1"; then
cmd="$1"