diff options
author | Carlos Martín Nieto <cmn@dwim.me> | 2015-05-07 16:12:36 +0200 |
---|---|---|
committer | Carlos Martín Nieto <cmn@dwim.me> | 2015-05-13 10:56:37 +0200 |
commit | 0bc3d56dde896483a65855adbeac016cf792f532 (patch) | |
tree | ed3cd41362ae9138b801a0dba74693e88bf19656 | |
parent | 4a5b781a48a5c4371b6b634d1161390c2d593812 (diff) | |
download | libgit2-0bc3d56dde896483a65855adbeac016cf792f532.tar.gz |
tests: don't push to our resourcescmn/local-push-message
A couple of tests use the wrong remote to push to. We did not notice up
to now because the local push would copy individual objects, and those
already existed, so it became a no-op.
Once we made local push create the packfile, it became noticeable that
there was a new packfile where it didn't belong.
-rw-r--r-- | tests/network/remote/local.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/network/remote/local.c b/tests/network/remote/local.c index 21cb93c57..9d96184a2 100644 --- a/tests/network/remote/local.c +++ b/tests/network/remote/local.c @@ -217,7 +217,7 @@ void test_network_remote_local__push_to_bare_remote(void) cl_git_pass(git_remote_connect(localremote, GIT_DIRECTION_PUSH, NULL)); /* Try to push */ - cl_git_pass(git_remote_upload(remote, &push_array, NULL)); + cl_git_pass(git_remote_upload(localremote, &push_array, NULL)); /* Clean up */ git_remote_free(localremote); @@ -256,7 +256,7 @@ void test_network_remote_local__push_to_bare_remote_with_file_url(void) cl_git_pass(git_remote_connect(localremote, GIT_DIRECTION_PUSH, NULL)); /* Try to push */ - cl_git_pass(git_remote_upload(remote, &push_array, NULL)); + cl_git_pass(git_remote_upload(localremote, &push_array, NULL)); /* Clean up */ git_remote_free(localremote); |