-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'jk/split-broken-ident' into maint
The fall-back parsing of commit objects with broken author or committer lines were less robust than ideal in picking up the timestamps. * jk/split-broken-ident: split_ident: parse timestamp from end of line
- Loading branch information
Showing
2 changed files
with
22 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,11 +13,16 @@ test_expect_success 'setup' ' | |
git update-ref refs/heads/broken_email $(cat broken_email.hash) | ||
' | ||
|
||
test_expect_success 'fsck notices broken commit' ' | ||
git fsck 2>actual && | ||
test_i18ngrep invalid.author actual | ||
' | ||
|
||
test_expect_success 'git log with broken author email' ' | ||
{ | ||
echo commit $(cat broken_email.hash) | ||
echo "Author: A U Thor <[email protected]>" | ||
echo "Date: Thu Jan 1 00:00:00 1970 +0000" | ||
echo "Date: Thu Apr 7 15:13:13 2005 -0700" | ||
echo | ||
echo " foo" | ||
} >expect.out && | ||
|
@@ -30,7 +35,7 @@ test_expect_success 'git log with broken author email' ' | |
' | ||
|
||
test_expect_success 'git log --format with broken author email' ' | ||
echo "A U [email protected]+" >expect.out && | ||
echo "A U [email protected]+Thu Apr 7 15:13:13 2005 -0700" >expect.out && | ||
: >expect.err && | ||
git log --format="%an+%ae+%ad" broken_email >actual.out 2>actual.err && | ||
|