Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
git2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
git2
Commits
9d9fff3c
Commit
9d9fff3c
authored
Jun 02, 2013
by
Scott J. Goldman
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1631 from scottjg/fix-timezone-parsing
Don't bail on parsing commits with an invalid timezone
parents
cfbd08a5
dc33b3d7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
src/signature.c
+4
-2
No files found.
src/signature.c
View file @
9d9fff3c
...
...
@@ -174,8 +174,10 @@ int git_signature__parse(git_signature *sig, const char **buffer_out,
tz_start
=
time_end
+
1
;
if
((
tz_start
[
0
]
!=
'-'
&&
tz_start
[
0
]
!=
'+'
)
||
git__strtol32
(
&
offset
,
tz_start
+
1
,
&
tz_end
,
10
)
<
0
)
return
signature_error
(
"malformed timezone"
);
git__strtol32
(
&
offset
,
tz_start
+
1
,
&
tz_end
,
10
)
<
0
)
{
//malformed timezone, just assume it's zero
offset
=
0
;
}
hours
=
offset
/
100
;
mins
=
offset
%
100
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment