Skip to content

Commit 6781235

Browse files
fix(gix-object): adapt to changes in gix-actor
Stop trimming the email at parsing time. We see poorly formatted emails with a space at the end in real Git repos and we wish for the gitoxide representation for such commits to roundtrip. Propagate the fix from `gix-actor` and add a test to show we now roundtrip.
1 parent ce68f6d commit 6781235

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
tree 1b2dfb4ac5e42080b682fc676e9738c94ce6d54d
2+
author Sebastian Thiel <sebastian.thiel@icloud.com > 1592437401 +0800
3+
committer Sebastian Thiel <sebastian.thiel@icloud.com> 1592437401 +0800
4+
5+
In the author line, the email is followed by a space

gix-object/tests/object/encode/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ mod commit {
8787
round_trip!(
8888
gix_object::Commit,
8989
gix_object::CommitRef,
90+
"commit/email-with-space.txt",
9091
"commit/signed-whitespace.txt",
9192
"commit/two-multiline-headers.txt",
9293
"commit/mergetag.txt",

0 commit comments

Comments
 (0)