Git 2.46-rc2
[git.git] / t / chainlint / dqstring-no-interpolate.test
blob7ae079b558b00add6713819f498e87da61598254
1 test_expect_success 'dqstring-no-interpolate' '
2 # LINT: regex dollar-sign eol anchor in double-quoted string not special
3 grep "^ ! \[rejected\][ ]*$BRANCH -> $BRANCH (non-fast-forward)$" out &&
5 # LINT: escaped "$" not mistaken for variable expansion
6 grep "^\\.git\$" output.txt &&
8 '"
10         cd client$version &&
11 # LINT: escaped dollar-sign in double-quoted test body
12         GIT_TEST_PROTOCOL_VERSION=$version git fetch-pack --no-progress .. \$(cat ../input)
13 ) >output &&
14         cut -d ' ' -f 2 <output | sort >actual &&
15         test_cmp expect actual