[mythtv-users] git & wiki

Michael T. Dean mtdean at thirdcontact.com
Wed Dec 8 19:37:56 UTC 2010

  On 12/08/2010 02:20 PM, Jarod Wilson wrote:
> On Dec 8, 2010, at 11:32 AM, Udo van den Heuvel wrote:
>> Even better!
>> But it doesn't always work:
>> [root at recorder mythweb.git]# pwd
>> /usr/src/mythweb.git
>> [root at recorder mythweb.git]# git describe | cut -d- -f 3
>> fatal: No names found, cannot describe anything.
>> [root at recorder mythweb.git]# git show HEAD | head -1 | awk '{print $2}'
>> 52cb8fb98f1aa209cfd2befa92a9cdd0b7841070
>> How come?
> Not sure how you managed that, I've never had it not work. Are
> you running that in a local branch and/or with a detached HEAD?

That happens in all the repos which have no tags/names on the master 
branch (i.e. everything except mythtv).

git describe --always

will give you the SHA1 abbreviation.

However, I'd recommend using --dirty, too, so you can see if it's a 
modified copy:

git describe --always --dirty


More information about the mythtv-users mailing list