Project.pm: add some more "cursory" checks to set_HEAD
commitb145f66887665b89f4ebedcfd0a2e164740c7296
authorKyle J. McKay <mackyle@gmail.com>
Sun, 11 Mar 2018 17:03:29 +0000 (11 10:03 -0700)
committerKyle J. McKay <mackyle@gmail.com>
Sun, 11 Mar 2018 17:03:29 +0000 (11 10:03 -0700)
tree3123f2f11c5bc4062bcda7720e6627c8b5605fea
parentcc26143dc03ea3d99687bcfe8953fdc357d8b902
Project.pm: add some more "cursory" checks to set_HEAD

There are various restrictions on ref names in Git.
They are detailed in `git help check-ref-format`.

Previously single quote (') and angle brackets (<>) were
being disallowed.  That is retained for now even though
technically those are NOT invalid ref name characters.

Add some more cursory checks for characters and sequences
that would cause Git to reject the ref name.

This still does not catch everything, but it catches a
lot more than it used to.

Signed-off-by: Kyle J. McKay <mackyle@gmail.com>
Girocco/Project.pm