Commit ce5d79c
Add test for tag missing timestamp in tagger (#1542)
This tag exists in an opensource repository:
https://kernel.googlesource.com/pub/scm/network/bridge/bridge-utils/+/refs/tags/ChangeLog
gitoxide can't parse it because it's got a tagger line, but no
timestamp.
git itself is more lenient about such cases, basically returning a
timestamp of 0 if the timestamp is missing:
https://github.com/git/git/blob/master/tag.c#L116
This is a new test to show the current behaviour.1 parent 46cd1ae commit ce5d79c
File tree
2 files changed
+19
-0
lines changed- gix-object/tests
- fixtures/tag
- tag
2 files changed
+19
-0
lines changedLines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
229 | 229 | | |
230 | 230 | | |
231 | 231 | | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
232 | 247 | | |
233 | 248 | | |
234 | 249 | | |
| |||
0 commit comments