mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* linux fatal: cannot describe <sha1>
@ 2008-07-01 16:20 Jan Engelhardt
  2008-07-01 20:09 ` Sam Ravnborg
  0 siblings, 1 reply; 6+ messages in thread
From: Jan Engelhardt @ 2008-07-01 16:20 UTC (permalink / raw)
  To: sam; +Cc: Linux Kernel Mailing List

Hi,


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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: linux fatal: cannot describe <sha1>
  2008-07-01 16:20 linux fatal: cannot describe <sha1> Jan Engelhardt
@ 2008-07-01 20:09 ` Sam Ravnborg
  2008-07-01 22:18   ` Sebastian Siewior
  0 siblings, 1 reply; 6+ messages in thread
From: Sam Ravnborg @ 2008-07-01 20:09 UTC (permalink / raw)
  To: Jan Engelhardt; +Cc: Linux Kernel Mailing List

On Tue, Jul 01, 2008 at 06:20:17PM +0200, Jan Engelhardt wrote:
> Hi,
> 
> 
> 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?

	Sam


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: linux fatal: cannot describe <sha1>
  2008-07-01 20:09 ` Sam Ravnborg
@ 2008-07-01 22:18   ` Sebastian Siewior
  2008-07-05 12:58     ` Jan Engelhardt
  2008-07-06 21:34     ` Sam Ravnborg
  0 siblings, 2 replies; 6+ messages in thread
From: Sebastian Siewior @ 2008-07-01 22:18 UTC (permalink / raw)
  To: Sam Ravnborg; +Cc: Jan Engelhardt, Linux Kernel Mailing List

* 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


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: linux fatal: cannot describe <sha1>
  2008-07-01 22:18   ` Sebastian Siewior
@ 2008-07-05 12:58     ` Jan Engelhardt
  2008-07-06 21:13       ` Sam Ravnborg
  2008-07-06 21:34     ` Sam Ravnborg
  1 sibling, 1 reply; 6+ messages in thread
From: Jan Engelhardt @ 2008-07-05 12:58 UTC (permalink / raw)
  To: Sebastian Siewior; +Cc: Sam Ravnborg, Linux Kernel Mailing List

On Wednesday 2008-07-02 00:18, Sebastian Siewior wrote:
>* 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'
>>> 
>>
>>Hi Jan.
>>
>>Any specific reason why you sent it to me?

You are the buildsystem maintainer :)

>Maybe he was thinking about this (and didn't know that you were moving):

I only took note of that briefly. Should there have been someone
else to send it to?

>---
>scripts: don't desribe if there is nothing to describe
>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?

looks ok i'd say.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: linux fatal: cannot describe <sha1>
  2008-07-05 12:58     ` Jan Engelhardt
@ 2008-07-06 21:13       ` Sam Ravnborg
  0 siblings, 0 replies; 6+ messages in thread
From: Sam Ravnborg @ 2008-07-06 21:13 UTC (permalink / raw)
  To: Jan Engelhardt; +Cc: Sebastian Siewior, Linux Kernel Mailing List

On Sat, Jul 05, 2008 at 02:58:48PM +0200, Jan Engelhardt wrote:
> On Wednesday 2008-07-02 00:18, Sebastian Siewior wrote:
> >* 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'
> >>> 
> >>
> >>Hi Jan.
> >>
> >>Any specific reason why you sent it to me?
> 
> You are the buildsystem maintainer :)
> 
> >Maybe he was thinking about this (and didn't know that you were moving):
> 
> I only took note of that briefly. Should there have been someone
> else to send it to?
I just failed to see the connection to kbuild - I had long
forgotten that we uses git describe in setlocalversion script.

	Sam

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: linux fatal: cannot describe <sha1>
  2008-07-01 22:18   ` Sebastian Siewior
  2008-07-05 12:58     ` Jan Engelhardt
@ 2008-07-06 21:34     ` Sam Ravnborg
  1 sibling, 0 replies; 6+ messages in thread
From: Sam Ravnborg @ 2008-07-06 21:34 UTC (permalink / raw)
  To: Sebastian Siewior; +Cc: Jan Engelhardt, Linux Kernel Mailing List

On Wed, Jul 02, 2008 at 12:18:08AM +0200, Sebastian Siewior wrote:
> * 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

Applied.

	Sam

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2008-07-06 21:33 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-07-01 16:20 linux fatal: cannot describe <sha1> Jan Engelhardt
2008-07-01 20:09 ` Sam Ravnborg
2008-07-01 22:18   ` Sebastian Siewior
2008-07-05 12:58     ` Jan Engelhardt
2008-07-06 21:13       ` Sam Ravnborg
2008-07-06 21:34     ` Sam Ravnborg

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®