]> git.ipfire.org Git - thirdparty/git.git/commitdiff
t9100: portability fix
authorJunio C Hamano <gitster@pobox.com>
Thu, 28 Jul 2016 21:20:13 +0000 (14:20 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 28 Jul 2016 21:20:13 +0000 (14:20 -0700)
Do not say "export VAR=VAL"; "VAR=VAL && export VAR" is always more
portable.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t9100-git-svn-basic.sh

index ab6593b910f171cd5b9b1f8cb3243c965e606e30..d29f60108a4235feae1068a6ea1a89cc7bee5b4b 100755 (executable)
@@ -24,7 +24,8 @@ ceiling=$PWD
 
 test_expect_success 'git svn --version works anywhere' '
        mkdir -p "$deepdir" && (
-               export GIT_CEILING_DIRECTORIES="$ceiling" &&
+               GIT_CEILING_DIRECTORIES="$ceiling" &&
+               export GIT_CEILING_DIRECTORIES &&
                cd "$deepdir" &&
                git svn --version
        )
@@ -32,7 +33,8 @@ test_expect_success 'git svn --version works anywhere' '
 
 test_expect_success 'git svn help works anywhere' '
        mkdir -p "$deepdir" && (
-               export GIT_CEILING_DIRECTORIES="$ceiling" &&
+               GIT_CEILING_DIRECTORIES="$ceiling" &&
+               export GIT_CEILING_DIRECTORIES &&
                cd "$deepdir" &&
                git svn help
        )