From 020aab9308fe30a9e7c9930514e4a5203981427e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Mart=C3=ADn=20Nieto?= Date: Sun, 14 Dec 2014 16:50:33 +0100 Subject: [PATCH] fetch: do set prune when testing We load the remote again, so we need to ask the new remote to prune the refs, or we're not exercising the code in our tests. --- tests/network/fetchlocal.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/network/fetchlocal.c b/tests/network/fetchlocal.c index 49a14db29..9bfa48844 100644 --- a/tests/network/fetchlocal.c +++ b/tests/network/fetchlocal.c @@ -159,6 +159,7 @@ void test_network_fetchlocal__prune_overlapping(void) cl_git_pass(git_config_set_multivar(config, "remote.origin.fetch", "^$", "refs/heads/*:refs/remotes/origin/*")); cl_git_pass(git_remote_lookup(&origin, repo, GIT_REMOTE_ORIGIN)); + git_remote_set_prune_refs(origin, true); git_remote_set_callbacks(origin, &callbacks); cl_git_pass(git_remote_fetch(origin, NULL, NULL, NULL));