aboutsummaryrefslogtreecommitdiffstats
path: root/plumbing/object/object_test.go
diff options
context:
space:
mode:
authorMáximo Cuadros <mcuadros@gmail.com>2017-01-09 09:50:29 +0100
committerGitHub <noreply@github.com>2017-01-09 09:50:29 +0100
commit0c6c986ddd9855c8fd5f28771f824d7da73d4dc3 (patch)
treee1927c59b94fa14e52ccc51daa3a9b7d8e4670fa /plumbing/object/object_test.go
parent841abfb7dc640755c443432064252907e3e55c95 (diff)
downloadgo-git-0c6c986ddd9855c8fd5f28771f824d7da73d4dc3.tar.gz
plumbing: fix signature with `>` before `<` parsing (#204)
Diffstat (limited to 'plumbing/object/object_test.go')
-rw-r--r--plumbing/object/object_test.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/plumbing/object/object_test.go b/plumbing/object/object_test.go
index 04f2b73..877ae1d 100644
--- a/plumbing/object/object_test.go
+++ b/plumbing/object/object_test.go
@@ -138,6 +138,16 @@ func (s *ObjectsSuite) TestParseSignature(c *C) {
Email: "foo@bar.com",
When: time.Time{},
},
+ `crap> <foo@bar.com> 1257894000 +1000`: {
+ Name: "crap>",
+ Email: "foo@bar.com",
+ When: MustParseTime("2009-11-11 09:00:00 +1000"),
+ },
+ `><`: {
+ Name: "",
+ Email: "",
+ When: time.Time{},
+ },
``: {
Name: "",
Email: "",