Commit 5cf1b4f094eb6f724b27aa01d4f0481de2e673af

Philip Kelley 2012-11-22T11:16:35

Call git_remote_update_tips before git_remote_disconnect

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
diff --git a/tests-clar/fetchhead/network.c b/tests-clar/fetchhead/network.c
index ef9d01b..fa3b92c 100644
--- a/tests-clar/fetchhead/network.c
+++ b/tests-clar/fetchhead/network.c
@@ -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,