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>

Jeff King committed Jul 28, 2014 at 11:48 UTC 919eb8acea61fc461e69e2383e6290b4c3991c96
1 file changed +1
t/t1402-check-ref-format.sh
+1
@@ -48,6 +48,7 @@ invalid_ref './foo/bar'
48 invalid_ref 'foo/./bar'
49 invalid_ref 'foo/bar/.'
50 invalid_ref '.refs/foo'
51 +invalid_ref 'refs/heads/foo.'
52 invalid_ref 'heads/foo..bar'
53 invalid_ref 'heads/foo?bar'
54 valid_ref 'foo./bar'