[Trac #99] No mappings between build image and GIT commit ID.
Zarro Boogs per Child
bugtracker at laptop.org
Wed Sep 20 11:51:19 EDT 2006
#99: No mappings between build image and GIT commit ID.
-------------------------+--------------------------------------------------
Reporter: cjb | Owner: blizzard
Type: enhancement | Status: new
Priority: normal | Milestone: beta
Component: distro | Resolution:
Keywords: build git |
-------------------------+--------------------------------------------------
Comment (by JordanCrouse):
I added these lines to the buildrom makefile:
{{{
# Get the last commit from our working environment
GITREV := $(shell git-rev-list HEAD --max-count=1 2> /dev/null)
# Figure out if any there are any oustanding changes
GITLOCAL := $(shell git-diff-index --name-only HEAD 2> /dev/null | wc -l)
}}}
GITREV will be last commit, and GITLOCAL will be non zero if there are
uncommited changes in the tree. Ivan also recommends:
{{{GITREV := $(expr substr $(GITREV) 1 6)}}}
To shorten the rev-ID to a managable length.
--
Ticket URL: <http://dev.laptop.org/ticket/99#comment:1>
One Laptop Per Child <http://laptop.org/>
More information about the Devel
mailing list