diff options
author | Jeff King <peff@peff.net> | 2014-07-28 19:48:11 +0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2014-07-28 21:42:39 +0400 |
commit | 919eb8acea61fc461e69e2383e6290b4c3991c96 (patch) | |
tree | 58c336311a21488276aea8c6521584e10161a49e | |
parent | 5e6502288d713cfa673c456a040ad0841db11dfa (diff) |
t1402: check for refs ending with a dot
This has been illegal since cbdffe4 (check_ref_format(): tighten
refname rules, 2009-03-21), but we never tested it.
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rwxr-xr-x | t/t1402-check-ref-format.sh | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/t/t1402-check-ref-format.sh b/t/t1402-check-ref-format.sh index 1a5a5f39fd..4bc7141226 100755 --- a/t/t1402-check-ref-format.sh +++ b/t/t1402-check-ref-format.sh @@ -48,6 +48,7 @@ invalid_ref './foo/bar' invalid_ref 'foo/./bar' invalid_ref 'foo/bar/.' invalid_ref '.refs/foo' +invalid_ref 'refs/heads/foo.' invalid_ref 'heads/foo..bar' invalid_ref 'heads/foo?bar' valid_ref 'foo./bar' |