Merge pull request #6506 from libgit2/ethomson/zero_update_tips

remote: always populate old id in update tips
This commit is contained in:
Edward Thomson
2023-02-27 12:32:09 -08:00
committed by GitHub

View File

@@ -1733,7 +1733,7 @@ static int update_ref(
const git_remote_callbacks *callbacks)
{
git_reference *ref;
git_oid old_id;
git_oid old_id = GIT_OID_SHA1_ZERO;
int error;
error = git_reference_name_to_id(&old_id, remote->repo, ref_name);