Merge "Set default branch in .gitreview files when creating project"

This commit is contained in:
Zuul 2021-04-22 23:41:08 +00:00 committed by Gerrit Code Review
commit 6b1c39df5d
1 changed files with 2 additions and 1 deletions

View File

@ -162,7 +162,8 @@ def make_local_copy(repo_path, project, default_branch, project_list,
host=%s
port=%s
project=%s
""" % (GERRIT_HOST, GERRIT_PORT, project_git))
defaultbranch=%s
""" % (GERRIT_HOST, GERRIT_PORT, project_git, default_branch))
git_command(repo_path, "add .gitreview")
cmd = ("commit -a -m'Added .gitreview' --author='%s'"
% GERRIT_GITID)