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
41e93563
Commit
41e93563
authored
May 01, 2013
by
Russell Belfer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Error messages for a couple other boundary conditions
parent
62caf3f3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
src/reflog.c
+3
-1
src/refs.c
+3
-1
No files found.
src/reflog.c
View file @
41e93563
...
@@ -483,8 +483,10 @@ int git_reflog_drop(
...
@@ -483,8 +483,10 @@ int git_reflog_drop(
entry
=
(
git_reflog_entry
*
)
git_reflog_entry_byindex
(
reflog
,
idx
);
entry
=
(
git_reflog_entry
*
)
git_reflog_entry_byindex
(
reflog
,
idx
);
if
(
entry
==
NULL
)
if
(
entry
==
NULL
)
{
giterr_set
(
GITERR_REFERENCE
,
"No reflog entry at index "
PRIuZ
,
idx
);
return
GIT_ENOTFOUND
;
return
GIT_ENOTFOUND
;
}
reflog_entry_free
(
entry
);
reflog_entry_free
(
entry
);
...
...
src/refs.c
View file @
41e93563
...
@@ -844,8 +844,10 @@ static int reference__update_terminal(
...
@@ -844,8 +844,10 @@ static int reference__update_terminal(
git_reference
*
ref
;
git_reference
*
ref
;
int
error
=
0
;
int
error
=
0
;
if
(
nesting
>
MAX_NESTING_LEVEL
)
if
(
nesting
>
MAX_NESTING_LEVEL
)
{
giterr_set
(
GITERR_REFERENCE
,
"Reference chain too deep (%d)"
,
nesting
);
return
GIT_ENOTFOUND
;
return
GIT_ENOTFOUND
;
}
error
=
git_reference_lookup
(
&
ref
,
repo
,
ref_name
);
error
=
git_reference_lookup
(
&
ref
,
repo
,
ref_name
);
...
...
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