summaryrefslogtreecommitdiff
path: root/git-stash.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2014-07-22 10:22:57 -0700
committerJunio C Hamano <gitster@pobox.com>2014-07-22 10:22:57 -0700
commit63618af24a67e5fc959217201d9f220383a39fd0 (patch)
treea6b75c4ebc22e529a11ff462afecfac20ecf713f /git-stash.sh
parentbba6acb335e296ed692b4aea224b50fd098f693c (diff)
parentc1cebcf4314a8f18ec06e6d10ce39f49a59076ec (diff)
downloadgit-63618af24a67e5fc959217201d9f220383a39fd0.tar.gz
Merge branch 'ep/shell-assign-and-export-vars' into maint
* 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 4798bcf0e5..4621d81fab 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) &&