summaryrefslogtreecommitdiffstats
path: root/git-stash.sh
diff options
context:
space:
mode:
authorElia Pinto <gitter.spiros@gmail.com>2014-05-23 12:15:31 +0200
committerJunio C Hamano <gitster@pobox.com>2014-05-24 00:32:33 +0200
commitbed137d2d55a3b5cbd642b1e80cd7bd9094db8d4 (patch)
tree1f7c896f16f22e70245e05d6e7db639e6f3a7c81 /git-stash.sh
parentGit 1.8.5.5 (diff)
downloadgit-bed137d2d55a3b5cbd642b1e80cd7bd9094db8d4.tar.xz
git-bed137d2d55a3b5cbd642b1e80cd7bd9094db8d4.zip
scripts: "export VAR=VALUE" construct is not portable
Found by check-non-portable-shell.pl Signed-off-by: Elia Pinto <gitter.spiros@gmail.com> Reviewed-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to '')
-rwxr-xr-xgit-stash.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/git-stash.sh b/git-stash.sh
index f0a94abf14..fc3005a7a2 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) &&