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
283f31ab
Commit
283f31ab
authored
Mar 02, 2015
by
Pierre-Olivier Latour
Committed by
Carlos Martín Nieto
Mar 21, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
git_branch_delete() should ignore errors from non-existing reflogs
parent
aa409d53
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletions
+6
-1
src/branch.c
+6
-1
No files found.
src/branch.c
View file @
283f31ab
...
...
@@ -138,8 +138,13 @@ int git_branch_delete(git_reference *branch)
if
(
git_reference_delete
(
branch
)
<
0
)
goto
on_error
;
if
(
git_reflog_delete
(
git_reference_owner
(
branch
),
git_reference_name
(
branch
))
<
0
)
if
(
git_reflog_delete
(
git_reference_owner
(
branch
),
git_reference_name
(
branch
))
<
0
)
{
if
(
error
==
GIT_ENOTFOUND
)
{
giterr_clear
();
error
=
0
;
}
goto
on_error
;
}
error
=
0
;
...
...
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