Skip to contentSkip to conversation

Barebox 'git describe' strangeness

DISCUSSION Baruch Siach 3 participants 5 messages Jul 1, 2010

lore
Share & tools
lore
#0 lore raw

Hi barebox list,

For some reason 'git describe' shows me:

v2009.12.0-178-gdc882c3

I.e. git doesn't find the more recent v2010.06.0 tag. What is worse is that the top-level Makefile takes the '-178-gdc882c3' part and attaches it to '2010.06.0', making the output of the 'version' command:

barebox 2010.06.0-00178-gcc827a1 (Jul 1 2010 - 09:02:45)

which is plain wrong.

Can anyone here explain what's going on?

BTW, I'm using git version 1.7.1 from Debian testing.

baruch

Signature · 8 lines
                                                     ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - [email protected] - tel: +972.2.679.5364, http://www.tkos.co.il -

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
#1 lore raw

Hi Baruch,

Quoted 10 lines · Baruch Siach

Hi barebox list,

For some reason 'git describe' shows me:

v2009.12.0-178-gdc882c3

I.e. git doesn't find the more recent v2010.06.0 tag. What is worse is that the top-level Makefile takes the '-178-gdc882c3' part and attaches it to '2010.06.0', making the output of the 'version' command:

Quoted 6 lines

barebox 2010.06.0-00178-gcc827a1 (Jul 1 2010 - 09:02:45)

which is plain wrong.

Can anyone here explain what's going on?

same thing here (the man says "By default (without --all or --tags) git describe only shows annotated tags." so maybe the tags after 2009.12.0 are not annotated ?)

git describe --tags
returns : v2010.06.0-29-g9ad1fe6

Eric

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox

#2 lore raw
Quoted 15 lines · Eric Bénard

Hi Baruch,

Quoted 12 lines · Baruch Siach

Hi barebox list,

For some reason 'git describe' shows me:

v2009.12.0-178-gdc882c3

I.e. git doesn't find the more recent v2010.06.0 tag. What is worse is that the top-level Makefile takes the '-178-gdc882c3' part and attaches it to '2010.06.0', making the output of the 'version' command:

barebox 2010.06.0-00178-gcc827a1 (Jul 1 2010 - 09:02:45)

Quoted 7 lines
Quoted 4 lines

which is plain wrong.

Can anyone here explain what's going on?

same thing here (the man says "By default (without --all or --tags) git describe only shows annotated tags." so maybe the tags after 2009.12.0 are not annotated ?)

No, they are not. Sorry, I'm still learning git...

I will fix this from the next release on.

Sascha

Signature · 9 lines
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
#3 lore raw
Quoted 7 lines · Sascha Hauer
Quoted 3 lines · Eric Bénard

same thing here (the man says "By default (without --all or --tags) git describe only shows annotated tags." so maybe the tags after 2009.12.0 are not annotated ?)

No, they are not. Sorry, I'm still learning git...

so we are all learning git ;-)

Thanks,
Eric

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox

#4 lore raw
In reply to Sascha Hauer

Hi Sascha,

Quoted 18 lines · Sascha Hauer
Quoted 17 lines · Eric Bénard
Quoted 16 lines · Baruch Siach

Hi barebox list,

For some reason 'git describe' shows me:

v2009.12.0-178-gdc882c3

I.e. git doesn't find the more recent v2010.06.0 tag. What is worse is that the top-level Makefile takes the '-178-gdc882c3' part and attaches it to '2010.06.0', making the output of the 'version' command:

barebox 2010.06.0-00178-gcc827a1 (Jul 1 2010 - 09:02:45)

which is plain wrong.

Can anyone here explain what's going on?

Quoted 7 lines
Quoted 3 lines

same thing here (the man says "By default (without --all or --tags) git describe only shows annotated tags." so maybe the tags after 2009.12.0 are not annotated ?)

No, they are not. Sorry, I'm still learning git...

I will fix this from the next release on.

I've posted a patch adding --tags to 'git describe'. This should fix the problem for older tags.

Thanks Eric.

baruch

Signature · 8 lines
                                                     ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - [email protected] - tel: +972.2.679.5364, http://www.tkos.co.il -

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox