Git development
 help / color / mirror / Atom feed
From: Junio C Hamano <junkio@cox.net>
To: Marco Roeland <marco.roeland@xs4all.nl>
Cc: ltuikov@yahoo.com, git@vger.kernel.org
Subject: Re: Errors pushing tags in "next"
Date: Fri, 23 Mar 2007 02:17:55 -0700	[thread overview]
Message-ID: <7vps70qpx8.fsf@assigned-by-dhcp.cox.net> (raw)
In-Reply-To: <20070323090213.GA7186@fiberbit.xs4all.nl> (Marco Roeland's message of "Fri, 23 Mar 2007 10:02:13 +0100")

Marco Roeland <marco.roeland@xs4all.nl> writes:

>> Luben Tuikov <ltuikov@yahoo.com> writes:
>> 
>> > BTW, git has always said to me "Pushing version ... to the masses"
>> > whenever I'd do "git-push --tags web".
>> 
>> Sorry, I must be blind, and git-grep is too.
>> 
>> $ git grep -e 'to the masses' -e 'Pushing v'
>> 
>> returns absolutely empty.
>
> The line comes from an older version of templates/hooks--update. The
> line was removed in commit 829a686f1b50ba96cac2d88494fa339efe0c0862 .
>
> So Luben does seem to have a hook installed, perhaps this is the
> culprit.

Thanks for spotting this.  I do not use this hook (well, I only
use commit-msg, pre-commit, and pre-rebase patches) and it was
totally outside of my radar.

It runs describe to find the previous tag, but the parser is a
bit old fashioned.  It says:

	prev=$(git describe "$3^" | sed 's/-g.*//')

but modern way to say the same is:

	prev=$(git describe --abbrev=0 "$3^")

Luben, sorry for the trouble.

I do not know how much better the recent hooks--update is
compared to the version you use.  It is supposed to be backward
compatible, so you _might_ want to simply update it with the one
from 'master' after checking if it suits your needs.  Otherwise,
I think the above one-liner should work the problem around.

  reply	other threads:[~2007-03-23  9:18 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-23  2:03 Errors pushing tags in "next" Luben Tuikov
2007-03-23  2:48 ` Junio C Hamano
2007-03-23  3:35   ` Luben Tuikov
2007-03-23  4:18     ` Junio C Hamano
2007-03-23  7:44       ` Luben Tuikov
2007-03-23  8:16         ` Junio C Hamano
2007-03-23  9:02           ` Marco Roeland
2007-03-23  9:17             ` Junio C Hamano [this message]
2007-03-23  9:43               ` Luben Tuikov
2007-03-23  9:19             ` Luben Tuikov
2007-03-23  9:13           ` Andy Parkins
2007-03-23  9:38             ` Luben Tuikov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7vps70qpx8.fsf@assigned-by-dhcp.cox.net \
    --to=junkio@cox.net \
    --cc=git@vger.kernel.org \
    --cc=ltuikov@yahoo.com \
    --cc=marco.roeland@xs4all.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox