summaryrefslogtreecommitdiff
path: root/tests/network
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2014-11-17 17:03:55 -0500
committerEdward Thomson <ethomson@edwardthomson.com>2014-11-17 17:03:55 -0500
commit7f1b73b7c893ec84cb04870f30199b41519f1c4e (patch)
treef2647118dfdcc0ded85d0a5969ad6834dbecfc2d /tests/network
parenta4221ccb099a11c020797ee199af01caa3cdd017 (diff)
parentaad638f3a1e4d98296c2ec9c4ed08f217a652c5c (diff)
downloadlibgit2-7f1b73b7c893ec84cb04870f30199b41519f1c4e.tar.gz
Merge pull request #2693 from libgit2/cmn/push-refspec-refactor
push: use the common refspec parser
Diffstat (limited to 'tests/network')
-rw-r--r--tests/network/remote/local.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/network/remote/local.c b/tests/network/remote/local.c
index a69af645d..a398101c3 100644
--- a/tests/network/remote/local.c
+++ b/tests/network/remote/local.c
@@ -212,7 +212,7 @@ void test_network_remote_local__push_to_bare_remote(void)
/* Try to push */
cl_git_pass(git_push_new(&push, localremote));
- cl_git_pass(git_push_add_refspec(push, "refs/heads/master:"));
+ cl_git_pass(git_push_add_refspec(push, "refs/heads/master"));
cl_git_pass(git_push_finish(push));
cl_assert(git_push_unpack_ok(push));
@@ -258,7 +258,7 @@ void test_network_remote_local__push_to_bare_remote_with_file_url(void)
/* Try to push */
cl_git_pass(git_push_new(&push, localremote));
- cl_git_pass(git_push_add_refspec(push, "refs/heads/master:"));
+ cl_git_pass(git_push_add_refspec(push, "refs/heads/master"));
cl_git_pass(git_push_finish(push));
cl_assert(git_push_unpack_ok(push));
@@ -301,7 +301,7 @@ void test_network_remote_local__push_to_non_bare_remote(void)
/* Try to push */
cl_git_pass(git_push_new(&push, localremote));
- cl_git_pass(git_push_add_refspec(push, "refs/heads/master:"));
+ cl_git_pass(git_push_add_refspec(push, "refs/heads/master"));
cl_git_fail_with(git_push_finish(push), GIT_EBAREREPO);
cl_assert_equal_i(0, git_push_unpack_ok(push));