Skip to content

Commit 997b688

Browse files
avargitster
authored andcommitted
tests: fix syntax error in "Use advise() for hints" test
Change the test introduced in the "Use advise() for hints" patch by Jonathan Nieder not to use '' for quotes inside '' delimited code. It ended up introducing a file called <paths> to the main git repository. Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent 314eeb6 commit 997b688

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

t/t3507-cherry-pick-conflict.sh

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,25 +38,25 @@ test_expect_success 'failed cherry-pick does not advance HEAD' '
3838
test "$head" = "$newhead"
3939
'
4040

41-
test_expect_success 'advice from failed cherry-pick' '
41+
test_expect_success 'advice from failed cherry-pick' "
4242
git checkout -f initial^0 &&
4343
git read-tree -u --reset HEAD &&
4444
git clean -d -f -f -q -x &&
4545
4646
git update-index --refresh &&
4747
git diff-index --exit-code HEAD &&
4848
49-
picked=$(git rev-parse --short picked) &&
49+
picked=\$(git rev-parse --short picked) &&
5050
cat <<-EOF >expected &&
51-
error: could not apply $picked... picked
51+
error: could not apply \$picked... picked
5252
hint: after resolving the conflicts, mark the corrected paths
5353
hint: with 'git add <paths>' or 'git rm <paths>'
54-
hint: and commit the result with 'git commit -c $picked'
54+
hint: and commit the result with 'git commit -c \$picked'
5555
EOF
5656
test_must_fail git cherry-pick picked 2>actual &&
5757
5858
test_cmp expected actual
59-
'
59+
"
6060

6161
test_expect_success 'failed cherry-pick produces dirty index' '
6262

0 commit comments

Comments
 (0)