summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2014-07-28 11:48:11 -0400
committerJunio C Hamano <gitster@pobox.com>2014-07-28 10:42:39 -0700
commit919eb8acea61fc461e69e2383e6290b4c3991c96 (patch)
tree58c336311a21488276aea8c6521584e10161a49e
parent5e6502288d713cfa673c456a040ad0841db11dfa (diff)
downloadgit-919eb8acea61fc461e69e2383e6290b4c3991c96.tar.gz
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-xt/t1402-check-ref-format.sh1
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'