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
d62bf0bf
Commit
d62bf0bf
authored
Jan 20, 2014
by
Russell Belfer
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2063 from linquize/reflog-msg-null
git_reflog_entry_message can be null
parents
fb62dc90
e7c66fc8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
src/revparse.c
+2
-0
No files found.
src/revparse.c
View file @
d62bf0bf
...
...
@@ -168,6 +168,8 @@ static int retrieve_previously_checked_out_branch_or_revision(git_object **out,
for
(
i
=
0
;
i
<
numentries
;
i
++
)
{
entry
=
git_reflog_entry_byindex
(
reflog
,
i
);
msg
=
git_reflog_entry_message
(
entry
);
if
(
!
msg
)
continue
;
if
(
regexec
(
&
preg
,
msg
,
2
,
regexmatches
,
0
))
continue
;
...
...
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