diff options
author | Carlos Martín Nieto <cmn@dwim.me> | 2015-05-14 10:34:42 +0200 |
---|---|---|
committer | Carlos Martín Nieto <cmn@dwim.me> | 2015-05-14 10:34:42 +0200 |
commit | 254ff3e929fdda6ad747d23c2c24fa377b5f9d97 (patch) | |
tree | 70bde8bae00818407838679c201b2f9298d5fe80 | |
parent | 041ad7dbd6ede2f2db4b1cb9e3fe2972d2b2c1de (diff) | |
download | libgit2-254ff3e929fdda6ad747d23c2c24fa377b5f9d97.tar.gz |
push: fix the update constructorcmn/push-notify-deleted
There was a copypasta error and the source and destination IDs were
reversed.
-rw-r--r-- | src/push.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/push.c b/src/push.c index abe90b76d..a0d8a0550 100644 --- a/src/push.c +++ b/src/push.c @@ -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); } |