Commit cd40b918 by Edward Thomson

remote: always populate old id in update tips

In b1e83cca we erroneously stopped
setting the old ID to zero; correct that.
parent 8a871d13
...@@ -1733,7 +1733,7 @@ static int update_ref( ...@@ -1733,7 +1733,7 @@ static int update_ref(
const git_remote_callbacks *callbacks) const git_remote_callbacks *callbacks)
{ {
git_reference *ref; git_reference *ref;
git_oid old_id; git_oid old_id = GIT_OID_SHA1_ZERO;
int error; int error;
error = git_reference_name_to_id(&old_id, remote->repo, ref_name); error = git_reference_name_to_id(&old_id, remote->repo, ref_name);
......
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