[mythtv-users] git & wiki

Nick Rout nick.rout at gmail.com
Wed Dec 8 19:10:31 UTC 2010


On Thu, Dec 9, 2010 at 5:32 AM, Udo van den Heuvel <udovdh at xs4all.nl> wrote:
> On 2010-12-08 17:13, Jarod Wilson wrote:
>> On Dec 8, 2010, at 10:10 AM, Udo van den Heuvel wrote:
>>> On 2010-12-08 15:07, Ian Kent wrote:
>>>> On Wed, 2010-12-08 at 21:57 +0800, Ian Kent wrote:
>>>>>> E.g.: I still need to find out how to get the git commit number we're at
>>>>>> to adjust the name of the mythtv rpms.
>>>>>
>>>>> git show HEAD | head -1 | awk '{print $2}'
>>>
>>> Hey, thanks!
>>
>> No, ew, there are better ways. See below. :)
> (...)
>>
>> git describe | cut -d- -f 3
>
> 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?
>
>> git describe gives you a minimal hash that is guaranteed to be unique.
>> If more than 8 characters are needed, it'll give 'em to you.
>
> Aha. Hmm. The info is getting complete enough to change around the
> svn-rsync-rpm-build to git-rsync-rpm-build...

Yes and I think most of that was in the original thread, which is on
the usual list archives.


More information about the mythtv-users mailing list