Skip to content
Snippets Groups Projects

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

Merged Hanchuan Wu requested to merge fix/util-common-python-script-main-branch-name into master
+ 1
1
@@ -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
Loading