Commit 8c13eaed by Carlos Martín Nieto

fetch: prune after updating tips

This makes a fetch+prune more similar to a connect+prune and makes it
more likely that we see errors in the decision to prune a reference.
parent 4aa23369
......@@ -926,12 +926,15 @@ int git_remote_fetch(
remote->name ? remote->name : remote->url);
}
if (remote->prune_refs && (error = git_remote_prune(remote)) < 0)
return error;
/* Create "remote/foo" branches for all remote branches */
error = git_remote_update_tips(remote, signature, git_buf_cstr(&reflog_msg_buf));
git_buf_free(&reflog_msg_buf);
if (error < 0)
return error;
if (remote->prune_refs)
error = git_remote_prune(remote);
return error;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment