Skip to content

Commit 44d3372

Browse files
authored
Merge pull request libgit2#6506 from libgit2/ethomson/zero_update_tips
remote: always populate old id in update tips
2 parents 8a871d1 + cd40b91 commit 44d3372

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libgit2/remote.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1733,7 +1733,7 @@ static int update_ref(
17331733
const git_remote_callbacks *callbacks)
17341734
{
17351735
git_reference *ref;
1736-
git_oid old_id;
1736+
git_oid old_id = GIT_OID_SHA1_ZERO;
17371737
int error;
17381738

17391739
error = git_reference_name_to_id(&old_id, remote->repo, ref_name);

0 commit comments

Comments
 (0)