summaryrefslogtreecommitdiff
path: root/t/t1402-check-ref-format.sh
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2014-07-28 15:48:11 (GMT)
committerJunio C Hamano <gitster@pobox.com>2014-07-28 17:42:39 (GMT)
commit919eb8acea61fc461e69e2383e6290b4c3991c96 (patch)
tree58c336311a21488276aea8c6521584e10161a49e /t/t1402-check-ref-format.sh
parent5e6502288d713cfa673c456a040ad0841db11dfa (diff)
downloadgit-919eb8acea61fc461e69e2383e6290b4c3991c96.zip
git-919eb8acea61fc461e69e2383e6290b4c3991c96.tar.gz
git-919eb8acea61fc461e69e2383e6290b4c3991c96.tar.bz2
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>
Diffstat (limited to 't/t1402-check-ref-format.sh')
-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 1a5a5f3..4bc7141 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'