summaryrefslogtreecommitdiff
path: root/git-stash.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2014-06-06 18:38:51 (GMT)
committerJunio C Hamano <gitster@pobox.com>2014-06-06 18:38:51 (GMT)
commit3ea8ecc21ec87eb5173a7145db2d3653e5b5fa28 (patch)
treea36ec1bb47acf4cc7d94347a59cb947bebf62408 /git-stash.sh
parented47bbd1d05ce7f78a52639e1b1fb522b975b066 (diff)
parentc1cebcf4314a8f18ec06e6d10ce39f49a59076ec (diff)
downloadgit-3ea8ecc21ec87eb5173a7145db2d3653e5b5fa28.zip
git-3ea8ecc21ec87eb5173a7145db2d3653e5b5fa28.tar.gz
git-3ea8ecc21ec87eb5173a7145db2d3653e5b5fa28.tar.bz2
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 af549c7..bcc757b 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) &&