t1402: check for refs ending with a dot
authorJeff King <peff@peff.net>
Mon, 28 Jul 2014 15:48:11 +0000 (11:48 -0400)
committerJunio C Hamano <gitster@pobox.com>
Mon, 28 Jul 2014 17:42:39 +0000 (10:42 -0700)
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>
t/t1402-check-ref-format.sh
index 1a5a5f39fd94f9eb98824b3d84983782b9ff71bb..4bc7141226c802ca049a76e978b6196f9e9fd7ff 100755 (executable)
@@ -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'