From bed137d2d55a3b5cbd642b1e80cd7bd9094db8d4 Mon Sep 17 00:00:00 2001 From: Elia Pinto Date: Fri, 23 May 2014 03:15:31 -0700 Subject: scripts: "export VAR=VALUE" construct is not portable Found by check-non-portable-shell.pl Signed-off-by: Elia Pinto Reviewed-by: Jonathan Nieder Signed-off-by: Junio C Hamano --- git-stash.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'git-stash.sh') 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) && -- cgit v1.2.3