Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@dwim.me>2013-03-30 12:30:29 +0400
committerCarlos Martín Nieto <cmn@dwim.me>2013-03-31 14:51:53 +0400
commit97016f29ab2359da5c59e2acae6369794fceb9d4 (patch)
tree891c8062cce0c3a3afce5eda864be9d7e0bc16e5 /tests-clar/refs
parenta258d8e3574c4e993bf16e0c136d1a5fbc356728 (diff)
branch: refactor git_branch_remote_name
Return the size we'd need to write to instead of simply an error. Split the function into two to be used later by the upstream configuration functions.
Diffstat (limited to 'tests-clar/refs')
-rw-r--r--tests-clar/refs/branches/remote.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests-clar/refs/branches/remote.c b/tests-clar/refs/branches/remote.c
index 5272d1236..2beef3724 100644
--- a/tests-clar/refs/branches/remote.c
+++ b/tests-clar/refs/branches/remote.c
@@ -42,7 +42,7 @@ void test_refs_branches_remote__insufficient_buffer_returns_error(void)
cl_git_fail_with(git_branch_remote_name(remotename,
expected_remote_name_length - 1, g_repo, remote_tracking_branch_name),
- GIT_ERROR);
+ expected_remote_name_length);
}
void test_refs_branches_remote__no_matching_remote_returns_error(void)