scripts: "export VAR=VALUE" construct is not portable
[gitweb.git] / git-stash.sh
index f0a94abf1434c65d27caf4cd674f89de62e9333c..fc3005a7a2453ebd37c7efee4a082e3655037603 100755 (executable)
@@ -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) &&