Skip to content

Commit 9f12bec

Browse files
Benabikgitster
authored andcommitted
t3502: Disambiguate between file and rev by adding --
On a case insensitive file system, this test fails because git-diff doesn't know if it is asking for the file "A" or the tag "a". Adding "--" at the end of the ambiguous commands allows the test to finish properly. Signed-off-by: Brian Gernhardt <benji@silverinsanity.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent ae3e76c commit 9f12bec

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

t/t3502-cherry-pick-merge.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ test_expect_success 'cherry-pick a non-merge with -m should fail' '
3636
git reset --hard &&
3737
git checkout a^0 &&
3838
! git cherry-pick -m 1 b &&
39-
git diff --exit-code a
39+
git diff --exit-code a --
4040
4141
'
4242

@@ -45,7 +45,7 @@ test_expect_success 'cherry pick a merge without -m should fail' '
4545
git reset --hard &&
4646
git checkout a^0 &&
4747
! git cherry-pick c &&
48-
git diff --exit-code a
48+
git diff --exit-code a --
4949
5050
'
5151

@@ -98,7 +98,7 @@ test_expect_success 'revert a merge (1)' '
9898
git reset --hard &&
9999
git checkout c^0 &&
100100
git revert -m 1 c &&
101-
git diff --exit-code a
101+
git diff --exit-code a --
102102
103103
'
104104

@@ -107,7 +107,7 @@ test_expect_success 'revert a merge (2)' '
107107
git reset --hard &&
108108
git checkout c^0 &&
109109
git revert -m 2 c &&
110-
git diff --exit-code b
110+
git diff --exit-code b --
111111
112112
'
113113

0 commit comments

Comments
 (0)