Skip to content

Commit c0320d2

Browse files
committed
update pre-commit hook
1 parent ca2d9ff commit c0320d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.githooks/pre-commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ if [[ "$current_branch" == "main" ]]; then
99
exit 1
1010
fi
1111

12-
valid_branch_regex="^(lab|project|assignment|homework|issue|dev|feature|bugfix|improvement|library|prerelease|release|hotfix)\/[a-z0-9._-]+$"
12+
valid_branch_regex="^(lab|project|assignment|homework|issue|dev|feature|bugfix|improvement|library|prerelease|release|hotfix)\/.+$"
1313

1414
message="ERROR on Commit. Branch name must adhere to this contract: $valid_branch_regex. Rename your branch to a valid name and try again."
1515

0 commit comments

Comments
 (0)