summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2023-01-20 22:53:32 +0000
committerEdward Thomson <ethomson@edwardthomson.com>2023-01-20 22:53:32 +0000
commit667c35304885055a3cf326a9e2e7920cb91cbdb1 (patch)
tree5e9c2b5ec8fca4cdfaf3e85c0a3153526d330f0c
parent2347eb3263c49723d539ba84959aca3a445de509 (diff)
downloadlibgit2-667c35304885055a3cf326a9e2e7920cb91cbdb1.tar.gz
push: use resolved oid as the source
211c97195e2ebcf68e27782715eb756823ad5a91 attempts to use the parsed OID but inverted the arguments to `git_oid_cpy`.
-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);
}