gitver.bbclass: fix git dependency tracking
authorMichael Smith <msmith@cbnco.com>
Mon, 26 Oct 2009 01:47:55 +0000 (21:47 -0400)
committerMichael Smith <msmith@cbnco.com>
Mon, 26 Oct 2009 11:13:51 +0000 (07:13 -0400)
commitdba8dec4093dc68610b762c8c7ac4e38c31cc8f9
tree1593b05419b75181f8349341cbb53b0809a6b01b
parent1f7a632a9689fb9b6e03eefd0781f3e39c6f12e5
gitver.bbclass: fix git dependency tracking

.git/HEAD doesn't usually change on a commit, but the ref it points to
(e.g. .git/refs/heads/master) should. Handle this and another couple of
cases: if a tag is added without a new commit, or if the ref is in
packed-refs.

Signed-off-by: Michael Smith <msmith@cbnco.com>
Acked-by: Chris Larson <clarson@kergoth.com>
classes/gitver.bbclass