Skip to content

Commit

Permalink
Account for main being used instead of master in lock code
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesadevine authored and microbit-carlos committed Mar 22, 2024
1 parent 1a3d477 commit fc1dd86
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utils/python/codal_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,8 @@ def get_next_version(options):
v2 = int(m.group(3))
vB = -1
branchName = os.popen('git rev-parse --abbrev-ref HEAD').read().strip()
if not options.branch and branchName != "master":
print("On non-master branch use -l -b")
if not options.branch and branchName not in ["master","main"]:
print("On feature branch use -l -b")
exit(1)
suff = ""
if options.branch:
Expand Down

0 comments on commit fc1dd86

Please sign in to comment.