aboutsummaryrefslogtreecommitdiffstats
path: root/config/branch.go
diff options
context:
space:
mode:
authorPaulo Gomes <pjbgf@linux.com>2023-12-01 09:21:30 +0000
committerGitHub <noreply@github.com>2023-12-01 09:21:30 +0000
commitcc1895b905ebadb09504d88444ff05932fa6e928 (patch)
tree4407dac9eb1960679355ded29df421cf533d2140 /config/branch.go
parentd87110b492c94d99ebdaea732b23a54b7efba94b (diff)
parentde1d5a5978b9599ca3dacd58bbf699e4bb4cf6bd (diff)
downloadgo-git-cc1895b905ebadb09504d88444ff05932fa6e928.tar.gz
Merge pull request #950 from aymanbagabas/validate-ref
git: validate reference names (#929)
Diffstat (limited to 'config/branch.go')
-rw-r--r--config/branch.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/branch.go b/config/branch.go
index 652270a..db2cb49 100644
--- a/config/branch.go
+++ b/config/branch.go
@@ -54,7 +54,7 @@ func (b *Branch) Validate() error {
return errBranchInvalidRebase
}
- return nil
+ return plumbing.NewBranchReferenceName(b.Name).Validate()
}
func (b *Branch) marshal() *format.Subsection {