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>2015-04-22 05:38:08 +0300
committerCarlos Martín Nieto <cmn@dwim.me>2015-05-13 10:46:36 +0300
commit22261344de18b3cc60ee6937468d66a6a6a28875 (patch)
tree6b12365545f66fb0ea274bf034049da3bb397176 /tests/fetchhead
parent8f0104ecc54db00a075310ab744a19eb60e3d740 (diff)
remote: remove url and pushurl from the save logic
As a first step in removing the repository-saving logic, don't allow chaning the url or push url from a remote object, but change the configuration on the configuration immediately.
Diffstat (limited to 'tests/fetchhead')
-rw-r--r--tests/fetchhead/nonetwork.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/fetchhead/nonetwork.c b/tests/fetchhead/nonetwork.c
index 489481826..24e87a618 100644
--- a/tests/fetchhead/nonetwork.c
+++ b/tests/fetchhead/nonetwork.c
@@ -331,9 +331,8 @@ void test_fetchhead_nonetwork__unborn_with_upstream(void)
cl_git_pass(git_clone(&repo, "./test1", "./repowithunborn", NULL));
/* Simulate someone pushing to it by changing to one that has stuff */
+ cl_git_pass(git_remote_set_url(repo, "origin", cl_fixture("testrepo.git")));
cl_git_pass(git_remote_lookup(&remote, repo, "origin"));
- cl_git_pass(git_remote_set_url(remote, cl_fixture("testrepo.git")));
- cl_git_pass(git_remote_save(remote));
cl_git_pass(git_remote_fetch(remote, NULL, NULL, NULL));
git_remote_free(remote);