fix: reject reserved Git HEAD branch

This commit is contained in:
2026-08-03 21:22:08 +02:00
parent cc951d8073
commit 6434c9c4e1
2 changed files with 6 additions and 0 deletions
+1
View File
@@ -45,6 +45,7 @@ function refSafeGitBranch(value: string): string {
const branch = requiredRegistryValue(value, "branch");
if (
branch === "@"
|| branch === "HEAD"
|| branch.startsWith("-")
|| branch.startsWith("/")
|| branch.endsWith("/")