Pick correct branch's SHA when using GitFetcher