@@ -35,7 +35,7 @@ fn reflog_by_entry_for_current_branch() {
35
35
36
36
#[ test]
37
37
fn reflog_by_date_for_current_branch ( ) {
38
- let rec = parse ( "@{1979-02-26 18:30:00 }" ) ;
38
+ let rec = parse ( "@{42 +0030 }" ) ;
39
39
40
40
assert ! ( rec. kind. is_none( ) ) ;
41
41
assert_eq ! ( rec. find_ref[ 0 ] , None ) ;
@@ -81,9 +81,9 @@ fn reflog_by_date_with_date_parse_failure() {
81
81
#[ test]
82
82
fn reflog_by_date_for_hash_is_invalid ( ) {
83
83
for ( spec, full_name) in [
84
- ( "1234@{1979-02-26 18:30:00 }" , "1234" ) ,
85
- ( "abcd-dirty@{1979-02-26 18:30:00 }" , "abcd-dirty" ) ,
86
- ( "v1.2.3-0-g1234@{1979-02-26 18:30:00 }" , "v1.2.3-0-g1234" ) ,
84
+ ( "1234@{42 +0030 }" , "1234" ) ,
85
+ ( "abcd-dirty@{42 +0030 }" , "abcd-dirty" ) ,
86
+ ( "v1.2.3-0-g1234@{42 +0030 }" , "v1.2.3-0-g1234" ) ,
87
87
] {
88
88
let err = try_parse ( spec) . unwrap_err ( ) ;
89
89
assert ! ( matches!( err, spec:: parse:: Error :: ReflogLookupNeedsRefName { name} if name == full_name) ) ;
@@ -93,12 +93,9 @@ fn reflog_by_date_for_hash_is_invalid() {
93
93
#[ test]
94
94
fn reflog_by_date_for_given_ref_name ( ) {
95
95
for ( spec, expected_ref) in [
96
- ( "main@{1979-02-26 18:30:00}" , "main" ) ,
97
- ( "refs/heads/other@{1979-02-26 18:30:00}" , "refs/heads/other" ) ,
98
- (
99
- "refs/worktree/feature/a@{1979-02-26 18:30:00}" ,
100
- "refs/worktree/feature/a" ,
101
- ) ,
96
+ ( "main@{42 +0030}" , "main" ) ,
97
+ ( "refs/heads/other@{42 +0030}" , "refs/heads/other" ) ,
98
+ ( "refs/worktree/feature/a@{42 +0030}" , "refs/worktree/feature/a" ) ,
102
99
] {
103
100
let rec = parse ( spec) ;
104
101
0 commit comments