rebase: pull out project-independent settings from the for loop
rebase: pull out project-independent settings from the for loop

This makes the code a bit easier to read by doing all the project
independent settings first instead of repeating it for every for
loop iteration.

Change-Id: I4ff21296e444627beba2f4b86561069f5e9a0d73
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/233554
Reviewed-by: David Pursehouse <e7b5c6a4a3dbaca972851f8c075e19915752593f@collab.net>
Tested-by: Mike Frysinger <8f3f75c74bd5184edcfa6534cab3c13a00a2f794@google.com>

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