Skip to content

Commit

Permalink
Merge pull request #262 from dosaboy/func-tests-defaultbranch-fallback
Browse files Browse the repository at this point in the history
Func tests branch detection fallback
  • Loading branch information
dosaboy authored Oct 3, 2024
2 parents 67ff713 + 9781349 commit 3d40bea
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def get_default_jobs():
path = os.path.join(os.environ['HOME'], 'zosci-config')
c = configparser.ConfigParser()
c.read('.gitreview')
branch = c['gerrit']['defaultbranch']
branch = c['gerrit'].get('defaultbranch', 'master')
osci = OSCIConfig()
jobs = ZOSCIConfig(path).get_branch_jobs(branch, osci.project_templates)
return jobs
Expand Down

0 comments on commit 3d40bea

Please sign in to comment.