From: Sebastian Siewior <lkml@ml.breakpoint.cc>
To: Sam Ravnborg <sam@ravnborg.org>
Cc: Jan Engelhardt <jengelh@medozas.de>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: linux fatal: cannot describe <sha1>
Date: Wed, 2 Jul 2008 00:18:08 +0200 [thread overview]
Message-ID: <20080701221808.GA26272@Chamillionaire.breakpoint.cc> (raw)
In-Reply-To: <20080701200951.GB10677@uranus.ravnborg.org>
* Sam Ravnborg | 2008-07-01 22:09:51 [+0200]:
>> Just a note that when you run git-describe, you should probably quiten it.
>>
>> fatal: cannot describe 'bd7364a0fd5a4a2878fe4a224be1b142a4e6698e'
>>
>> This happens when tags are not present, which can happen if Linus's tree
>> is sent upwards again, IOW:
>>
>> machine1$ git-clone torvalds/linux-2.6.git
>> machine1$ git push elsewhere master
>>
>> machine2$ git-clone elsewhere:/linux
>> machine2$ git-describe HEAD
>> fatal: cannot describe that
>
>Hi Jan.
>
>Any specific reason why you sent it to me?
>Maybe because I do not use git describe at all?
Maybe he was thinking about this (and didn't know that you were moving):
---
scripts: don't desribe if there is nothing to describe
Signed-off-by: Sebastian Siewior <sebastian@breakpoint.cc>
---
scripts/setlocalversion | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/scripts/setlocalversion b/scripts/setlocalversion
index 1c1bdaf..83b7512 100755
--- a/scripts/setlocalversion
+++ b/scripts/setlocalversion
@@ -12,7 +12,9 @@ cd "${1:-.}" || usage
if head=`git rev-parse --verify HEAD 2>/dev/null`; then
# Do we have an untagged version?
if git name-rev --tags HEAD | grep -E '^HEAD[[:space:]]+(.*~[0-9]*|undefined)$' > /dev/null; then
- git describe | awk -F- '{printf("-%05d-%s", $(NF-1),$(NF))}'
+ if tag=`git describe 2>/dev/null`; then
+ echo $tag | awk -F- '{printf("-%05d-%s", $(NF-1),$(NF))}'
+ fi
fi
# Are there uncommitted changes?
--
1.5.5.4
next prev parent reply other threads:[~2008-07-01 22:18 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-01 16:20 Jan Engelhardt
2008-07-01 20:09 ` Sam Ravnborg
2008-07-01 22:18 ` Sebastian Siewior [this message]
2008-07-05 12:58 ` Jan Engelhardt
2008-07-06 21:13 ` Sam Ravnborg
2008-07-06 21:34 ` Sam Ravnborg
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=20080701221808.GA26272@Chamillionaire.breakpoint.cc \
--to=lkml@ml.breakpoint.cc \
--cc=jengelh@medozas.de \
--cc=linux-kernel@vger.kernel.org \
--cc=sam@ravnborg.org \
/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
all inboxes | Powered by JetHome®