[PATCH] Make AUTOBUILD use git SHA1 hash instead of contents of .git/HEAD

Tal Kelrich tal at musicgenome.com
Thu May 24 15:59:07 UTC 2007


Against feisty, sorry.

On Thu, 24 May 2007 18:57:17 +0300
Tal Kelrich <tal at musicgenome.com> wrote:

> 
> Signed-off-by: Tal Kelrich <tal at musicgenome.com>
> 
> diff --git a/debian/rules b/debian/rules
> index 62c184a..f1ee75e 100755
> --- a/debian/rules
> +++ b/debian/rules
> @@ -60,7 +60,7 @@ else
>  autobuild	= y
>  skipabi		= true
>  
> -gitver=$(shell if test -f .git/HEAD; then cat .git/HEAD; else
> uuidgen; fi) +gitver=$(shell if test -f .git/HEAD; then git-rev-parse
> HEAD; else uuidgen; fi) gitverpre=$(shell echo $(gitver) | cut -b -3)
>  gitverpost=$(shell echo $(gitver) | cut -b 38-40)
>  


-- 
Tal Kelrich
PGP fingerprint: 3EDF FCC5 60BB 4729 AB2F  CAE6 FEC1 9AAC 12B9 AA69
Key Available at: http://www.hasturkun.com/pub.txt
----
Your/our computer(s) had suffered a memory leak, and we are waiting for
them to be topped up. ----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <https://lists.ubuntu.com/archives/kernel-team/attachments/20070524/4cbf4db9/attachment.pgp>


More information about the kernel-team mailing list