summaryrefslogtreecommitdiff
path: root/git-stash.sh
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2014-06-06 11:38:51 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2014-06-06 11:38:51 -0700
commit3ea8ecc21ec87eb5173a7145db2d3653e5b5fa28 (patch)
treea36ec1bb47acf4cc7d94347a59cb947bebf62408 /git-stash.sh
parentMerge branch 'jj/command-line-adjective' (diff)
parentscripts: more "export VAR=VALUE" fixes (diff)
downloadtgif-3ea8ecc21ec87eb5173a7145db2d3653e5b5fa28.tar.xz
Merge branch 'ep/shell-assign-and-export-vars'
* ep/shell-assign-and-export-vars: scripts: more "export VAR=VALUE" fixes scripts: "export VAR=VALUE" construct is not portable
Diffstat (limited to 'git-stash.sh')
-rwxr-xr-xgit-stash.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/git-stash.sh b/git-stash.sh
index af549c7317..bcc757b390 100755
--- a/git-stash.sh
+++ b/git-stash.sh
@@ -94,7 +94,8 @@ create_stash () {
# ease of unpacking later.
u_commit=$(
untracked_files | (
- export GIT_INDEX_FILE="$TMPindex"
+ GIT_INDEX_FILE="$TMPindex" &&
+ export GIT_INDEX_FILE &&
rm -f "$TMPindex" &&
git update-index -z --add --remove --stdin &&
u_tree=$(git write-tree) &&