summaryrefslogtreecommitdiff
path: root/t/t5516-fetch-push.sh
diff options
context:
space:
mode:
authorJiang Xin <zhiyou.jx@alibaba-inc.com>2020-08-27 15:45:42 (GMT)
committerJunio C Hamano <gitster@pobox.com>2020-08-27 19:47:47 (GMT)
commit917c612512cd4523f5587870547ee5369aa4632d (patch)
tree227809fd3e71d683b522d390f1efff68008ab223 /t/t5516-fetch-push.sh
parentb34789c0b0d3b137f0bb516b417bd8d75e0cb306 (diff)
downloadgit-917c612512cd4523f5587870547ee5369aa4632d.zip
git-917c612512cd4523f5587870547ee5369aa4632d.tar.gz
git-917c612512cd4523f5587870547ee5369aa4632d.tar.bz2
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>
Diffstat (limited to 't/t5516-fetch-push.sh')
-rwxr-xr-xt/t5516-fetch-push.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t5516-fetch-push.sh b/t/t5516-fetch-push.sh
index 9c6218f..77938db 100755
--- a/t/t5516-fetch-push.sh
+++ b/t/t5516-fetch-push.sh
@@ -1039,7 +1039,7 @@ test_force_fetch_tag "annotated tag" "-f -a -m'tag message'"
test_expect_success 'push --porcelain' '
mk_empty testrepo &&
echo >.git/foo "To testrepo" &&
- echo >>.git/foo "* refs/heads/master:refs/remotes/origin/master [new branch]" &&
+ echo >>.git/foo "* refs/heads/master:refs/remotes/origin/master [new reference]" &&
echo >>.git/foo "Done" &&
git push >.git/bar --porcelain testrepo refs/heads/master:refs/remotes/origin/master &&
(