project: unify StartBranch flows behind git-update-ref
project: unify StartBranch flows behind git-update-ref

We're using this for git worktrees because it handles the .git file
format, but it should work for all flows.  Unify to simplify.  This
also fixes the worktree logic which duplicated .git/config settings.

Change-Id: Ie3af2e206710859dccfc376b3593f415d6830738
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/256034
Tested-by: Mike Frysinger <8f3f75c74bd5184edcfa6534cab3c13a00a2f794@google.com>
Reviewed-by: Jonathan Nieder <96e93edf89a1b75e35c5d08e01778cfc4fff73d9@google.com>

aosp-mirror/tools_repo,couchbasedeps/git-repo,TheQtCompany/git-repo,GerritCodeReview/git-repo,codetutil/git-repo,lipro-yocto/git-repo,mer-tools/git-repo,mer-tools/git-repo,aosp-mirror/tools_repo,lewixliu/git-repo,codetutil/git-repo,lipro-yocto/git-repo,GerritCodeReview/git-repo,TheQtCompany/git-repo,couchbasedeps/git-repo,lewixliu/git-repo