diff options
author | Edward Thomson <ethomson@edwardthomson.com> | 2023-02-27 12:32:09 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-27 12:32:09 -0800 |
commit | 44d3372e4097d01a279fa51bbc2e0c8672ef25f7 (patch) | |
tree | 210bcf4ab9d87a59c8182a56e48c72e3f61b2852 | |
parent | 8a871d13b7f4e186b8ad943ae5a7fcf30be52e67 (diff) | |
parent | cd40b9186311516ab69c778c5f676f20c28435ed (diff) | |
download | libgit2-44d3372e4097d01a279fa51bbc2e0c8672ef25f7.tar.gz |
Merge pull request #6506 from libgit2/ethomson/zero_update_tips
remote: always populate old id in update tips
-rw-r--r-- | src/libgit2/remote.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libgit2/remote.c b/src/libgit2/remote.c index ab6b5edbc..c3e2a324d 100644 --- a/src/libgit2/remote.c +++ b/src/libgit2/remote.c @@ -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); |