Re: git-push [--all] and tags
- From
Sam Vilain <sam@vilain.net>
- Date
- Oct 7, 2007, 01:02 UTC
- Message-ID
- <47083035.7070904@vilain.net>
- In-Reply-To
- <20071006160506.GA28238@lapse.madduck.net>
martin f krafft wrote:
Show 18 quoted lines
> Hello people, > > `git-push --all --tags` does not work because git-push ends up > calling git-send-pack --all refs/tags/*, which the latter does not > deal with. > > Looking at the code, it seems that previously, --all would push > everything, not just refs/heads/*. What's the reason that this was > changed? Why aren't tags considered part of --all? > > If I wanted to fix this, so that --all pushes heads and --all --tags > pushes heads and tags, I could do so in two ways: > > 1. instead of --all, pass refs/heads/* to git-send-pack > 2. add --tags to git-send-pack > > which of these two would you prefer and why? >
Think is, pushing tags is considered to be something that needs to be done very explicitly; the convention, after all, is that published tags are forever. Whereas branches change all the time. So, pushing tags should require an extra flag.
Sam.