diff options
author | Ayman Bagabas <ayman.bagabas@gmail.com> | 2023-11-28 14:31:04 -0500 |
---|---|---|
committer | Ayman Bagabas <ayman.bagabas@gmail.com> | 2023-11-30 18:21:53 -0500 |
commit | de1d5a5978b9599ca3dacd58bbf699e4bb4cf6bd (patch) | |
tree | 0b1cd5f542c58ff2f0cc0584a7fda7c600c4e37a /plumbing/format/objfile/writer.go | |
parent | a3b3d5347fda4f6392325d633f0ab308082c8843 (diff) | |
download | go-git-de1d5a5978b9599ca3dacd58bbf699e4bb4cf6bd.tar.gz |
git: validate reference names
Check reference names format before creating branches/tags/remotes.
This should probably be in a lower level somewhere in `plumbing`.
Validating the names under `plumbing.NewReference*` is not possible
since these functions don't return errors.
Fixes: https://github.com/go-git/go-git/issues/929
Diffstat (limited to 'plumbing/format/objfile/writer.go')
0 files changed, 0 insertions, 0 deletions