Re: BUG: For first push to a bare repo, using "--tags" prevents creation of master branch

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Matthieu Moy <Matthieu.Moy@xxxxxxxxxxxxxxx> writes:

> You did not provide any refspec (you provided <repository> but not
> <refspec>), hence --tags pushes only tags. So, this is the expected
> behavior.

Right.

> That said, we may want to add an option like --tags-also that would push
> tags _in addition_ to what would normally be pushed. --follow-tags does
> more or less this, though, but only for annotated tags pointing at a ref
> being pushed.

Yeah.  I am not sure --tags-also is necessarily a good thing (I do
not think "fetch --tags" is a good thing, either).  If --follow-tags
does not touch lightweight ones, that may be a bug we would want to
fix.  I did not mean to implement --follow-tags that way, and I do
not offhand remember if there was a reason to omit lightweight ones.

Thanks.

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]