]> git.proxmox.com Git - libgit2.git/commitdiff
Call git_remote_update_tips before git_remote_disconnect
authorPhilip Kelley <phkelley@hotmail.com>
Thu, 22 Nov 2012 16:16:35 +0000 (11:16 -0500)
committerPhilip Kelley <phkelley@hotmail.com>
Thu, 22 Nov 2012 16:16:35 +0000 (11:16 -0500)
tests-clar/fetchhead/network.c

index ef9d01bf945c87e084d00df91ba7d4b70547bd8d..fa3b92c82426b1723fc2c57eb13e6ff10662c325 100644 (file)
@@ -45,9 +45,8 @@ static void fetchhead_test_fetch(const char *fetchspec, const char *expected_fet
 
        cl_git_pass(git_remote_connect(remote, GIT_DIR_FETCH));
        cl_git_pass(git_remote_download(remote, NULL, NULL));
-       git_remote_disconnect(remote);
-
        cl_git_pass(git_remote_update_tips(remote));
+       git_remote_disconnect(remote);
        git_remote_free(remote);
 
        cl_git_pass(git_futils_readbuffer(&fetchhead_buf,