Unverified Commit 44d3372e by Edward Thomson Committed by GitHub

Merge pull request #6506 from libgit2/ethomson/zero_update_tips

remote: always populate old id in update tips
parents 8a871d13 cd40b918
...@@ -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