diff options
-rwxr-xr-x | t/t5800-remote-helpers.sh | 2 | ||||
-rw-r--r-- | transport-helper.c | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/t/t5800-remote-helpers.sh b/t/t5800-remote-helpers.sh index ca115ccb74..ceb0010574 100755 --- a/t/t5800-remote-helpers.sh +++ b/t/t5800-remote-helpers.sh @@ -106,7 +106,7 @@ test_expect_failure 'fetch multiple branches' ' compare_refs server new localclone refs/remotes/origin/new ' -test_expect_failure 'push when remote has extra refs' ' +test_expect_success 'push when remote has extra refs' ' (cd clone && echo content >>file && git commit -a -m six && diff --git a/transport-helper.c b/transport-helper.c index b560b64149..34d18aaeda 100644 --- a/transport-helper.c +++ b/transport-helper.c @@ -730,7 +730,8 @@ static int push_refs_with_export(struct transport *transport, } free(private); - string_list_append(&revlist_args, ref->name); + if (ref->peer_ref) + string_list_append(&revlist_args, ref->peer_ref->name); } |