getbranch: use the output of repo info, rather than slapchopping the output of git log in .repo/manifests

Change-Id: I9241e39b3a42c2a66b056a0c9ac70b8f2cf20dff