We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f35afa commit d4e6c4bCopy full SHA for d4e6c4b
t/t7604-merge-custom-message.sh
@@ -8,6 +8,11 @@ Testing merge when using a custom message for the merge commit.'
8
9
create_merge_msgs() {
10
echo >exp.subject "custom message"
11
+
12
+ cp exp.subject exp.log &&
13
+ echo >>exp.log "" &&
14
+ echo >>exp.log "* commit 'c2':" &&
15
+ echo >>exp.log " c2"
16
}
17
18
test_expect_success 'setup' '
@@ -35,4 +40,11 @@ test_expect_success 'merge c2 with a custom message' '
35
40
test_cmp exp.subject actual
36
41
'
37
42
43
+test_expect_failure 'merge --log appends to custom message' '
44
+ git reset --hard c1 &&
45
+ git merge --log -m "$(cat exp.subject)" c2 &&
46
+ git cat-file commit HEAD | sed -e "1,/^$/d" >actual &&
47
+ test_cmp exp.log actual
48
+'
49
38
50
test_done
0 commit comments