diff options
author | Junio C Hamano <gitster@pobox.com> | 2014-06-06 11:38:51 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2014-06-06 11:38:51 -0700 |
commit | 3ea8ecc21ec87eb5173a7145db2d3653e5b5fa28 (patch) | |
tree | a36ec1bb47acf4cc7d94347a59cb947bebf62408 /git-stash.sh | |
parent | Merge branch 'jj/command-line-adjective' (diff) | |
parent | scripts: more "export VAR=VALUE" fixes (diff) | |
download | tgif-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-x | git-stash.sh | 3 |
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) && |