Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.kernel.org/pub/scm/git/git.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2014-06-06 22:38:51 +0400
committerJunio C Hamano <gitster@pobox.com>2014-06-06 22:38:51 +0400
commit3ea8ecc21ec87eb5173a7145db2d3653e5b5fa28 (patch)
treea36ec1bb47acf4cc7d94347a59cb947bebf62408 /git-stash.sh
parented47bbd1d05ce7f78a52639e1b1fb522b975b066 (diff)
parentc1cebcf4314a8f18ec06e6d10ce39f49a59076ec (diff)
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 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) &&