Modify willis to work on branches too

The `willis' utility which reports repo tree status is broken when
operating on branches, because it uses the same git branch to find out
the git tree status. The Manifest object provides proper default
branch for every git repository, that information should be used
instead.

BUG=none
TEST=manual
   . run modified 'willis' on a ToT, observe reporetd results match
     unmodified version
   . run modified 'willis' in the firmware branch - observe it succeed
     (showing sensible git repos information), it was failing before

Change-Id: I6c96624a3bf6c4f5861b3842cbcce87ff4a7edbf
Signed-off-by: Vadim Bendebury <vbendeb@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/34473
Reviewed-by: David James <davidjames@chromium.org>
1 file changed