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
4de89ce7
Commit
4de89ce7
authored
Jun 29, 2012
by
nulltoken
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
revparse: unfound partially-named ref returns ENOTFOUND
parent
cbc02c10
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
src/revparse.c
+1
-1
tests-clar/refs/revparse.c
+1
-2
No files found.
src/revparse.c
View file @
4de89ce7
...
...
@@ -107,7 +107,7 @@ static int revparse_lookup_object(git_object **out, git_repository *repo, const
git_buf_free
(
&
refnamebuf
);
giterr_set
(
GITERR_REFERENCE
,
"Refspec '%s' not found."
,
spec
);
return
GIT_E
RROR
;
return
GIT_E
NOTFOUND
;
}
...
...
tests-clar/refs/revparse.c
View file @
4de89ce7
...
...
@@ -38,10 +38,9 @@ void test_refs_revparse__cleanup(void)
cl_setenv
(
"TZ"
,
g_orig_tz
);
}
void
test_refs_revparse__nonexistant_object
(
void
)
{
cl_
git_fail
(
git_revparse_single
(
&
g_obj
,
g_repo
,
"this doesn't exist"
));
cl_
assert_equal_i
(
GIT_ENOTFOUND
,
git_revparse_single
(
&
g_obj
,
g_repo
,
"this doesn't exist"
));
cl_git_fail
(
git_revparse_single
(
&
g_obj
,
g_repo
,
"this doesn't exist^1"
));
cl_git_fail
(
git_revparse_single
(
&
g_obj
,
g_repo
,
"this doesn't exist~2"
));
}
...
...
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