]> code.ossystems Code Review - openembedded-core.git/commit
linux-wrs: validate commits when forcing branches
authorBruce Ashfield <bruce.ashfield@windriver.com>
Sat, 25 Sep 2010 05:39:02 +0000 (01:39 -0400)
committerSaul Wold <Saul.Wold@intel.com>
Thu, 30 Sep 2010 17:08:55 +0000 (10:08 -0700)
commit8d5b2224bd042940769ebffd521d68ec3eefbb55
tree37b6a8eba47eea29c0d893aa817ad6916bcc05f9
parent06c19f0cd0c71bb721084294a2a3cb60d1855dfd
linux-wrs: validate commits when forcing branches

Fixes [BUGID #372]

If for some unknown reason, the kernel git repository hasn't been properly
updated and is *older* than the revisions listed in default-revisions the
branch sanity checking kicks in and tries to force branches to the right
revs. The problem is, the revisions it is looking for don't exist in the
tree.  As a result, error messages are thrown about invalid commit IDs.
These aren't helpful, and are simply confusing for the user.

Instead we can test for the commit ID, and if it isn't valid, indicate
that the commit ID isn't valid and that the tree is potentially out
of sync.

This situation is not common, but it is an easy test and the extra
sanity checking is useful.

Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
meta/recipes-kernel/linux/linux-wrs_git.bb