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

Tal Kelrich tal at musicgenome.com
Thu May 24 15:57:17 UTC 2007

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
You are a wish to be here wishing yourself.
		-- Philip Whalen
-------------- 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/4ee32dd2/attachment.sig>

More information about the kernel-team mailing list