t: use common $SQ variable
[gitweb.git] / t / t1300-config.sh
index 428177c390dbe726c2aa9df4eb9c6f9d54766049..983a0a15839acf90aefec0a78d9ee1574dc7c445 100755 (executable)
@@ -1294,26 +1294,25 @@ test_expect_success 'git -c is not confused by empty environment' '
        GIT_CONFIG_PARAMETERS="" git -c x.one=1 config --list
 '
 
-sq="'"
 test_expect_success 'detect bogus GIT_CONFIG_PARAMETERS' '
        cat >expect <<-\EOF &&
        env.one one
        env.two two
        EOF
-       GIT_CONFIG_PARAMETERS="${sq}env.one=one${sq} ${sq}env.two=two${sq}" \
+       GIT_CONFIG_PARAMETERS="${SQ}env.one=one${SQ} ${SQ}env.two=two${SQ}" \
                git config --get-regexp "env.*" >actual &&
        test_cmp expect actual &&
 
        cat >expect <<-EOF &&
-       env.one one${sq}
+       env.one one${SQ}
        env.two two
        EOF
-       GIT_CONFIG_PARAMETERS="${sq}env.one=one${sq}\\$sq$sq$sq ${sq}env.two=two${sq}" \
+       GIT_CONFIG_PARAMETERS="${SQ}env.one=one${SQ}\\$SQ$SQ$SQ ${SQ}env.two=two${SQ}" \
                git config --get-regexp "env.*" >actual &&
        test_cmp expect actual &&
 
        test_must_fail env \
-               GIT_CONFIG_PARAMETERS="${sq}env.one=one${sq}\\$sq ${sq}env.two=two${sq}" \
+               GIT_CONFIG_PARAMETERS="${SQ}env.one=one${SQ}\\$SQ ${SQ}env.two=two${SQ}" \
                git config --get-regexp "env.*"
 '