summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 314eeb6)
raw | patch | inline | side by side (parent: 314eeb6)
author | Ævar Arnfjörð Bjarmason <avarab@gmail.com> | |
Wed, 18 Aug 2010 14:36:44 +0000 (14:36 +0000) | ||
committer | Junio C Hamano <gitster@pobox.com> | |
Wed, 18 Aug 2010 20:20:56 +0000 (13:20 -0700) |
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>
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>
t/t3507-cherry-pick-conflict.sh | patch | blob | history |
index 3f29594329a8f47302085962a8d58faf9e583ddf..607bf25d8ff7720407c2b15e4808c575b5f36093 100755 (executable)
test "$head" = "$newhead"
'
-test_expect_success 'advice from failed cherry-pick' '
+test_expect_success 'advice from failed cherry-pick' "
git checkout -f initial^0 &&
git read-tree -u --reset HEAD &&
git clean -d -f -f -q -x &&
git update-index --refresh &&
git diff-index --exit-code HEAD &&
- picked=$(git rev-parse --short picked) &&
+ picked=\$(git rev-parse --short picked) &&
cat <<-EOF >expected &&
- error: could not apply $picked... picked
+ error: could not apply \$picked... picked
hint: after resolving the conflicts, mark the corrected paths
hint: with 'git add <paths>' or 'git rm <paths>'
- hint: and commit the result with 'git commit -c $picked'
+ hint: and commit the result with 'git commit -c \$picked'
EOF
test_must_fail git cherry-pick picked 2>actual &&
test_cmp expected actual
-'
+"
test_expect_success 'failed cherry-pick produces dirty index' '