mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-28 04:29:42 +00:00
tests: don't push to our resources
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.
This commit is contained in:
parent
4a5b781a48
commit
0bc3d56dde
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user