Thread (11 messages) flat view 11 messages, 2 authors, 2016-06-15

Re: [PATCH 1/4] t/t7502: compare entire commit message with what was expected

From: Jonathan Nieder <hidden>
Date: 2016-06-15 22:56:11

Jonathan Nieder wrote:
quoted hunk ↗ jump to hunk
+++ w/t/t7502-commit.sh
[...]
+		# Please enter the commit message for your changes. Lines starting
+		# with '\''#'\'' will be kept; you may remove them yourself if you want to.
+		# An empty message aborts the commit.
+		#
+		# Author:    A U Thor [off-list ref]
+		#
+		EOF
+		git commit -a --dry-run
+	} >expect &&
+	git commit --cleanup=verbatim -t template -a &&
-	git cat-file -p HEAD |sed -e "1,/^\$/d" |head -n 3 >actual &&
+	git cat-file -p HEAD |sed -e "1,/^\$/d" >actual &&
 	test_cmp expect actual
Quick correction: this would use test_i18ncmp instead of test_cmp if
it ends up being a good idea.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help