File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -94,8 +94,11 @@ private Models.Branch ParseLine(string line)
94
94
branch . IsLocal = true ;
95
95
}
96
96
97
+ ulong committerDate = 0 ;
98
+ ulong . TryParse ( parts [ 1 ] , out committerDate ) ;
99
+
97
100
branch . FullName = refName ;
98
- branch . CommitterDate = ulong . Parse ( parts [ 1 ] ) ;
101
+ branch . CommitterDate = committerDate ;
99
102
branch . Head = parts [ 2 ] ;
100
103
branch . IsCurrent = parts [ 3 ] == "*" ;
101
104
branch . Upstream = parts [ 4 ] ;
Original file line number Diff line number Diff line change @@ -34,13 +34,16 @@ public QueryTags(string repo)
34
34
if ( ! string . IsNullOrEmpty ( message ) && message . Equals ( name , StringComparison . Ordinal ) )
35
35
message = null ;
36
36
37
+ ulong creactorDate = 0 ;
38
+ ulong . TryParse ( subs [ 5 ] , out creactorDate ) ;
39
+
37
40
tags . Add ( new Models . Tag ( )
38
41
{
39
42
Name = name ,
40
43
IsAnnotated = subs [ 1 ] . Equals ( "tag" , StringComparison . Ordinal ) ,
41
44
SHA = string . IsNullOrEmpty ( subs [ 3 ] ) ? subs [ 2 ] : subs [ 3 ] ,
42
45
Creator = Models . User . FindOrAdd ( subs [ 4 ] ) ,
43
- CreatorDate = string . IsNullOrEmpty ( subs [ 5 ] ) ? 0 : ulong . Parse ( subs [ 5 ] ) ,
46
+ CreatorDate = creactorDate ,
44
47
Message = message ,
45
48
} ) ;
46
49
}
You can’t perform that action at this time.
0 commit comments