Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
t3502: validate '-m 1' argument is now accepted for non-merge commits
author
Sergey Organov
<sorganov@gmail.com>
Fri, 14 Dec 2018 04:53:51 +0000
(07:53 +0300)
committer
Junio C Hamano
<gitster@pobox.com>
Mon, 7 Jan 2019 16:44:37 +0000
(08:44 -0800)
Signed-off-by: Sergey Organov <sorganov@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t3502-cherry-pick-merge.sh
patch
|
blob
|
history
raw
|
patch
|
inline
| side by side (parent:
37897bf
)
diff --git
a/t/t3502-cherry-pick-merge.sh
b/t/t3502-cherry-pick-merge.sh
index b1602718f85468d17faa1cc0d7ae8854ac2f5407..8b635a196d5cc57016520466b92b5f439b217a9d 100755
(executable)
--- a/
t/t3502-cherry-pick-merge.sh
+++ b/
t/t3502-cherry-pick-merge.sh
@@
-40,12
+40,12
@@
test_expect_success 'cherry-pick -m complains of bogus numbers' '
test_expect_code 129 git cherry-pick -m 0 b
'
test_expect_code 129 git cherry-pick -m 0 b
'
-test_expect_success 'cherry-pick
a non-merge with -m should fail
' '
+test_expect_success 'cherry-pick
explicit first parent of a non-merge
' '
git reset --hard &&
git checkout a^0 &&
git reset --hard &&
git checkout a^0 &&
-
test_expect_code 128
git cherry-pick -m 1 b &&
- git diff --exit-code
a
--
+ git cherry-pick -m 1 b &&
+ git diff --exit-code
c
--
'
'
@@
-84,12
+84,12
@@
test_expect_success 'cherry pick a merge relative to nonexistent parent should f
'
'
-test_expect_success 'revert
a non-merge with -m should fail
' '
+test_expect_success 'revert
explicit first parent of a non-merge
' '
git reset --hard &&
git checkout c^0 &&
git reset --hard &&
git checkout c^0 &&
-
test_must_fail
git revert -m 1 b &&
- git diff --exit-code
c
+ git revert -m 1 b &&
+ git diff --exit-code
a --
'
'