mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-22 08:18:37 +00:00
Fix check for invalid Git branch name
This commit is contained in:
@@ -88,7 +88,7 @@ class CommitChanges(bpy.types.Operator):
|
|||||||
repo
|
repo
|
||||||
and repo.head.is_detached
|
and repo.head.is_detached
|
||||||
and (
|
and (
|
||||||
not tool.is_valid_ref_format(props.new_branch_name)
|
not tool.IfcGit.is_valid_ref_format(props.new_branch_name)
|
||||||
or props.new_branch_name in [branch.name for branch in repo.branches]
|
or props.new_branch_name in [branch.name for branch in repo.branches]
|
||||||
)
|
)
|
||||||
):
|
):
|
||||||
|
|||||||
Reference in New Issue
Block a user