Skip to content

Commit cd40b91

Browse files
author
Edward Thomson
committed
remote: always populate old id in update tips
In b1e83cc we erroneously stopped setting the old ID to zero; correct that.
1 parent 8a871d1 commit cd40b91

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)