From: Jeff King Date: Mon, 28 Jul 2014 15:48:11 +0000 (-0400) Subject: t1402: check for refs ending with a dot X-Git-Tag: v2.1.0-rc1~11 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=919eb8acea61fc461e69e2383e6290b4c3991c96;p=git 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 Signed-off-by: Junio C Hamano --- 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'