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>
Elia Pinto committed
May 23, 2014 at 03:15 UTC
bed137d2d55a3b5cbd642b1e80cd7bd9094db8d4
3 files changed
+6
-3
contrib/subtree/t/t7900-subtree.sh
+2
-1
@@ -8,7 +8,8 @@ This test verifies the basic operation of the merge, pull, add
8
and split subcommands of git subtree.
9
'
10
11
-export TEST_DIRECTORY=$(pwd)/../../../t
11
+TEST_DIRECTORY=$(pwd)/../../../t
12
+export TEST_DIRECTORY
13
14
. ../../../t/test-lib.sh
15
git-remote-testgit.sh
+2
-1
@@ -13,7 +13,8 @@ refspec="${GIT_REMOTE_TESTGIT_REFSPEC-$default_refspec}"
13
14
test -z "$refspec" && prefix="refs"
15
16
-export GIT_DIR="$url/.git"
16
+GIT_DIR="$url/.git"
17
+export GIT_DIR
18
19
mkdir -p "$dir"
20
git-stash.sh
+2
-1
@@ -94,7 +94,8 @@ create_stash () {
94
# ease of unpacking later.
95
u_commit=$(
96
untracked_files | (
97
- export GIT_INDEX_FILE="$TMPindex"
97
+ GIT_INDEX_FILE="$TMPindex" &&
98
+ export GIT_INDEX_FILE &&
99
rm -f "$TMPindex" &&
100
git update-index -z --add --remove --stdin &&
101
u_tree=$(git write-tree) &&