test/send-email: --[no-]xmailer tests
[gitweb.git] / git-stash.sh
index af549c731779db02db29fef446014a58bc9a3996..bcc757b3900b02595e5b432edcfd590e312b48ce 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) &&