Skip to content
Snippets Groups Projects
Commit 0a925037 authored by Timo Koch's avatar Timo Koch
Browse files

Merge branch 'fix/util-common-python-script-main-branch-name' into 'master'

[bin][util] main branch can be named as main or master

See merge request !3194
parents 8364659c a446bd7d
No related branches found
No related tags found
1 merge request!3194[bin][util] main branch can be named as main or master
Checking pipeline status
......@@ -273,7 +273,7 @@ def hasUntrackedFiles(pathToRepo="."):
def isPersistentBranch(branchName):
"""Check if a branch is what we consider persistent (default protected branches)"""
if branchName == "origin/master":
if branchName in ("origin/master", "origin/main"):
return True
if branchName.startswith("origin/releases/"):
return True
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment