mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-06 23:26:39 +00:00
push: fix the update constructor
There was a copypasta error and the source and destination IDs were reversed.
This commit is contained in:
parent
041ad7dbd6
commit
254ff3e929
@ -529,11 +529,12 @@ static int add_update(git_push *push, push_spec *spec)
|
||||
|
||||
u->src_refname = git__strdup(spec->refspec.src);
|
||||
GITERR_CHECK_ALLOC(u->src_refname);
|
||||
u->dst_refname = git__strdup(spec->refspec.src);
|
||||
|
||||
u->dst_refname = git__strdup(spec->refspec.dst);
|
||||
GITERR_CHECK_ALLOC(u->dst_refname);
|
||||
|
||||
git_oid_cpy(&u->src, &spec->loid);
|
||||
git_oid_cpy(&u->dst, &spec->roid);
|
||||
git_oid_cpy(&u->src, &spec->roid);
|
||||
git_oid_cpy(&u->dst, &spec->loid);
|
||||
|
||||
return git_vector_insert(&push->updates, u);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user