cannot push tags + commits together to gitlab.com
Summary
Cannot push tags + commits simultaneously to gitlab.com
Steps to reproduce
create a commit and an annotated tag. push them together either using --tags or --follow-tags
e.g. git push origin HEAD:master --follow-tags
Example Project
I can replicate the issue on this repo. But since the commit / tag never makes it to the server, this is really just the default repo that gets created w/ a Readme file.
https://gitlab.com/ryanhope-coviam/busted-up-tags
What is the current bug behavior?
You get this error, and the push fails:
git push origin HEAD:master --follow-tags
Warning: Permanently added 'gitlab.com,172.65.251.78' (ECDSA) to the list of known hosts.
Counting objects: 4, done.
Delta compression using up to 16 threads.
Compressing objects: 100% (2/2), done.
Writing objects: 100% (4/4), 436 bytes | 436.00 KiB/s, done.
Total 4 (delta 0), reused 0 (delta 0)
error executing git hookerror executing git hookfatal: ref updates aborted by hook
fatal: The remote end hung up unexpectedly
fatal: The remote end hung up unexpectedly
What is the expected correct behavior?
The tag + commit should get pushed to the repo.
Relevant logs and/or screenshots
git push origin HEAD:master --follow-tags
Warning: Permanently added 'gitlab.com,172.65.251.78' (ECDSA) to the list of known hosts.
Counting objects: 4, done.
Delta compression using up to 16 threads.
Compressing objects: 100% (2/2), done.
Writing objects: 100% (4/4), 436 bytes | 436.00 KiB/s, done.
Total 4 (delta 0), reused 0 (delta 0)
error executing git hookerror executing git hookfatal: ref updates aborted by hook
fatal: The remote end hung up unexpectedly
fatal: The remote end hung up unexpectedly
Output of checks
This bug happens on GitLab.com
Edited by Ryan Hope