diff options
author | Junio C Hamano <gitster@pobox.com> | 2014-07-22 10:22:57 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2014-07-22 10:22:57 -0700 |
commit | 63618af24a67e5fc959217201d9f220383a39fd0 (patch) | |
tree | a6b75c4ebc22e529a11ff462afecfac20ecf713f /git-stash.sh | |
parent | bba6acb335e296ed692b4aea224b50fd098f693c (diff) | |
parent | c1cebcf4314a8f18ec06e6d10ce39f49a59076ec (diff) | |
download | git-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-x | git-stash.sh | 3 |
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) && |