diff options
| author | 2026-06-06 22:06:10 +0000 | |
|---|---|---|
| committer | 2026-06-06 22:06:10 +0000 | |
| commit | d4e9c05b2775bcbb5df17cc677a61950fd88dcb3 (patch) | |
| tree | 9a5208f8061a6255a5f328e2db5b8261823595c1 | |
| parent | object/commit: Sentilnel with description (diff) | |
| signature | No signature | |
ref/name: Fix error next
| -rw-r--r-- | ref/name/update.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ref/name/update.go b/ref/name/update.go index a87165a4..08238061 100644 --- a/ref/name/update.go +++ b/ref/name/update.go @@ -26,7 +26,7 @@ func ValidateUpdateName(name string, hasNewValue bool) error { func ValidateSymbolicTarget(name string, target string) error { parsed := ParseWorktree(name) if parsed.BareRefName == "HEAD" && !strings.HasPrefix(target, "refs/heads/") { - return fmt.Errorf("%w: %s must point to refs/heads/...", ErrInvalidName, name) + return fmt.Errorf("%w: %s must point to a refs/heads/ branch", ErrInvalidName, name) } if IsRoot(target) { |
