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
b0aa14aa
Commit
b0aa14aa
authored
Dec 24, 2012
by
nulltoken
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remote: Enhance in-memory remote test coverage
parent
7d4b65f6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletions
+3
-1
include/git2/remote.h
+1
-1
tests-clar/network/remotes.c
+2
-0
No files found.
include/git2/remote.h
View file @
b0aa14aa
...
...
@@ -109,7 +109,7 @@ GIT_EXTERN(int) git_remote_save(const git_remote *remote);
* Get the remote's name
*
* @param remote the remote
* @return a pointer to the name
* @return a pointer to the name
or NULL for in-memory remotes
*/
GIT_EXTERN
(
const
char
*
)
git_remote_name
(
const
git_remote
*
remote
);
...
...
tests-clar/network/remotes.c
View file @
b0aa14aa
...
...
@@ -257,6 +257,8 @@ void test_network_remotes__cannot_save_an_inmemory_remote(void)
cl_git_pass
(
git_remote_create_inmemory
(
&
remote
,
_repo
,
"git://github.com/libgit2/libgit2"
,
NULL
));
cl_assert_equal_p
(
NULL
,
git_remote_name
(
remote
));
cl_git_fail
(
git_remote_save
(
remote
));
git_remote_free
(
remote
);
}
...
...
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