summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2023-01-20 23:16:44 +0000
committerGitHub <noreply@github.com>2023-01-20 23:16:44 +0000
commit036fe1afba37d9b20509671d3048c6088f018134 (patch)
tree5e9c2b5ec8fca4cdfaf3e85c0a3153526d330f0c
parent2347eb3263c49723d539ba84959aca3a445de509 (diff)
parent667c35304885055a3cf326a9e2e7920cb91cbdb1 (diff)
downloadlibgit2-036fe1afba37d9b20509671d3048c6088f018134.tar.gz
Merge pull request #6452 from libgit2/ethomson/oid_warning
push: use resolved oid as the source
-rw-r--r--src/libgit2/push.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libgit2/push.c b/src/libgit2/push.c
index e1502d337..e25681870 100644
--- a/src/libgit2/push.c
+++ b/src/libgit2/push.c
@@ -395,7 +395,7 @@ static int calculate_work(git_push *push)
return -1;
}
- git_oid_cpy(git_object_id(obj), &spec->loid);
+ git_oid_cpy(&spec->loid, git_object_id(obj));
git_object_free(obj);
}