restructure getGit so that extensions get the release branch

Previously, they got HEAD which was wrong.

Change-Id: I4bd0803c73ad7f6a02639c82e1bfe7a07160b439
Merge "restructure getGit so that extensions get the release branch"