* How can I tell if a tag has been pushed, or not?
@ 2009-07-10 17:43 layer
2009-07-10 19:28 ` Alex Riesen
2009-07-11 13:44 ` Andreas Ericsson
0 siblings, 2 replies; 4+ messages in thread
From: layer @ 2009-07-10 17:43 UTC (permalink / raw)
To: git
Here's the problem:
I expect that users, in their own private repos, will from time to
time create tags that should not be pushed. Sometimes, tags that
should be pushed will be created.
I could require that the "public" tags follow a specific convention
(start with "release", or something). Then, the scripts all my
developers use could use that and push only certain tags. However,
over time there could be a large number of them. It seems undesirable
to push each tag each time a push is done. So, how can I tell if a
tag has already been pushed? Is there a way?
Thanks.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: How can I tell if a tag has been pushed, or not?
2009-07-10 17:43 How can I tell if a tag has been pushed, or not? layer
@ 2009-07-10 19:28 ` Alex Riesen
2009-07-10 20:02 ` layer
2009-07-11 13:44 ` Andreas Ericsson
1 sibling, 1 reply; 4+ messages in thread
From: Alex Riesen @ 2009-07-10 19:28 UTC (permalink / raw)
To: layer; +Cc: git
On Fri, Jul 10, 2009 at 19:43, layer<layer@known.net> wrote:
> Here's the problem:
>
> I expect that users, in their own private repos, will from time to
> time create tags that should not be pushed. Sometimes, tags that
> should be pushed will be created.
>
> I could require that the "public" tags follow a specific convention
> (start with "release", or something). Then, the scripts all my
> developers use could use that and push only certain tags. However,
> over time there could be a large number of them. It seems undesirable
> to push each tag each time a push is done. So, how can I tell if a
> tag has already been pushed? Is there a way?
git push does not push any tags by default. You either have to
specify them explicitly or add --tags (all tags). Maybe that is enough?
Otherwise, there is always git ls-remote 'tags/*'...
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: How can I tell if a tag has been pushed, or not?
2009-07-10 19:28 ` Alex Riesen
@ 2009-07-10 20:02 ` layer
0 siblings, 0 replies; 4+ messages in thread
From: layer @ 2009-07-10 20:02 UTC (permalink / raw)
To: Alex Riesen; +Cc: git
Alex Riesen <raa.lkml@gmail.com> wrote:
>> On Fri, Jul 10, 2009 at 19:43, layer<layer@known.net> wrote:
>> > Here's the problem:
>> >
>> > I expect that users, in their own private repos, will from time to
>> > time create tags that should not be pushed. Sometimes, tags that
>> > should be pushed will be created.
>> >
>> > I could require that the "public" tags follow a specific convention
>> > (start with "release", or something). Then, the scripts all my
>> > developers use could use that and push only certain tags. However,
>> > over time there could be a large number of them. It seems undesirable
>> > to push each tag each time a push is done. So, how can I tell if a
>> > tag has already been pushed? Is there a way?
>>
>> git push does not push any tags by default. You either have to
>> specify them explicitly or add --tags (all tags). Maybe that is enough?
No, I already knew about that.
>> Otherwise, there is always git ls-remote 'tags/*'...
This is what I needed. Thanks.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: How can I tell if a tag has been pushed, or not?
2009-07-10 17:43 How can I tell if a tag has been pushed, or not? layer
2009-07-10 19:28 ` Alex Riesen
@ 2009-07-11 13:44 ` Andreas Ericsson
1 sibling, 0 replies; 4+ messages in thread
From: Andreas Ericsson @ 2009-07-11 13:44 UTC (permalink / raw)
To: layer; +Cc: git
layer wrote:
> Here's the problem:
>
> I expect that users, in their own private repos, will from time to
> time create tags that should not be pushed. Sometimes, tags that
> should be pushed will be created.
>
> I could require that the "public" tags follow a specific convention
> (start with "release", or something). Then, the scripts all my
> developers use could use that and push only certain tags. However,
> over time there could be a large number of them. It seems undesirable
> to push each tag each time a push is done. So, how can I tell if a
> tag has already been pushed? Is there a way?
>
At $dayjob we only allow annotated tags to be pushed. The default
update hook works like a charm for that. All private tags are kept
un-annotated and can therefore never be pushed by accident.
/Andreas
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-07-11 13:45 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-07-10 17:43 How can I tell if a tag has been pushed, or not? layer
2009-07-10 19:28 ` Alex Riesen
2009-07-10 20:02 ` layer
2009-07-11 13:44 ` Andreas Ericsson
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.