Git fork
1test_expect_success 'dqstring-no-interpolate' '
2# LINT: regex dollar-sign eol anchor in double-quoted string not special
3grep "^ ! \[rejected\][ ]*$BRANCH -> $BRANCH (non-fast-forward)$" out &&
4
5# LINT: escaped "$" not mistaken for variable expansion
6grep "^\\.git\$" output.txt &&
7
8'"
9(
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
16"'
17'