File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -45,6 +45,10 @@ protected function doParse()
45
45
$ this ->consume ('committer ' );
46
46
list ($ this ->committerName , $ this ->committerEmail , $ this ->committerDate ) = $ this ->consumeNameEmailDate ();
47
47
$ this ->committerDate = $ this ->parseDate ($ this ->committerDate );
48
+
49
+ // will consume an GPG signed commit if there is one
50
+ $ this ->consumeGPGSignature ();
51
+
48
52
$ this ->consumeNewLine ();
49
53
50
54
$ this ->consumeNewLine ();
Original file line number Diff line number Diff line change @@ -185,6 +185,18 @@ public function testGetMessage($repository)
185
185
$ this ->assertEquals ('add a long file ' ."\n" , $ commit ->getMessage ());
186
186
}
187
187
188
+ /**
189
+ * This test ensures that GPG signed commits does not break the reading of a commit
190
+ * message.
191
+ *
192
+ * @dataProvider provideFoobar
193
+ */
194
+ public function testGetSignedMessage ($ repository )
195
+ {
196
+ $ commit = $ repository ->getCommit (self ::SIGNED_COMMIT );
197
+ $ this ->assertEquals ('signed commit ' ."\n" , $ commit ->getMessage ());
198
+ }
199
+
188
200
/**
189
201
* @dataProvider provideFoobar
190
202
*/
You can’t perform that action at this time.
0 commit comments