mirror of
https://github.com/git/git
synced 2024-10-31 01:43:41 +00:00
16 lines
485 B
Text
16 lines
485 B
Text
|
# LINT: regex dollar-sign eol anchor in double-quoted string not special
|
||
|
grep "^ ! \[rejected\][ ]*$BRANCH -> $BRANCH (non-fast-forward)$" out &&
|
||
|
|
||
|
# LINT: escaped "$" not mistaken for variable expansion
|
||
|
grep "^\\.git\$" output.txt &&
|
||
|
|
||
|
'"
|
||
|
(
|
||
|
cd client$version &&
|
||
|
# LINT: escaped dollar-sign in double-quoted test body
|
||
|
GIT_TEST_PROTOCOL_VERSION=$version git fetch-pack --no-progress .. \$(cat ../input)
|
||
|
) >output &&
|
||
|
cut -d ' ' -f 2 <output | sort >actual &&
|
||
|
test_cmp expect actual
|
||
|
"'
|