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
dea5ce3d
Unverified
Commit
dea5ce3d
authored
Jan 15, 2020
by
Edward Thomson
Committed by
GitHub
Jan 15, 2020
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5359 from tniessen/make-type-mismatch-errors-consistent
Make type mismatch errors consistent
parents
cc4f4cbe
5e1b6eaf
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
src/commit.c
+1
-1
src/object.c
+1
-1
No files found.
src/commit.c
View file @
dea5ce3d
...
...
@@ -753,7 +753,7 @@ int git_commit_extract_signature(git_buf *signature, git_buf *signed_data, git_r
return
error
;
if
(
obj
->
cached
.
type
!=
GIT_OBJECT_COMMIT
)
{
git_error_set
(
GIT_ERROR_INVALID
,
"the requested type does not match the type in ODB"
);
git_error_set
(
GIT_ERROR_INVALID
,
"the requested type does not match the type in
the
ODB"
);
error
=
GIT_ENOTFOUND
;
goto
cleanup
;
}
...
...
src/object.c
View file @
dea5ce3d
...
...
@@ -201,7 +201,7 @@ int git_object_lookup_prefix(
if
(
type
!=
GIT_OBJECT_ANY
&&
type
!=
object
->
cached
.
type
)
{
git_object_free
(
object
);
git_error_set
(
GIT_ERROR_INVALID
,
"the requested type does not match the type in ODB"
);
"the requested type does not match the type in
the
ODB"
);
return
GIT_ENOTFOUND
;
}
...
...
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