transport: not report a non-head push as a branch
commit917c612512cd4523f5587870547ee5369aa4632d
authorJiang Xin <zhiyou.jx@alibaba-inc.com>
Thu, 27 Aug 2020 15:45:42 +0000 (27 11:45 -0400)
committerJunio C Hamano <gitster@pobox.com>
Thu, 27 Aug 2020 19:47:47 +0000 (27 12:47 -0700)
tree227809fd3e71d683b522d390f1efff68008ab223
parentb34789c0b0d3b137f0bb516b417bd8d75e0cb306
transport: not report a non-head push as a branch

When pushing a new reference (not a head or tag), report it as a new
reference instead of a new branch.

Signed-off-by: Jiang Xin <zhiyou.jx@alibaba-inc.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t5516-fetch-push.sh
transport.c