Skip to content

Commit 919eb8a

Browse files
peffgitster
authored andcommitted
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 <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 5e65022 commit 919eb8a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

t/t1402-check-ref-format.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ invalid_ref './foo/bar'
4848
invalid_ref 'foo/./bar'
4949
invalid_ref 'foo/bar/.'
5050
invalid_ref '.refs/foo'
51+
invalid_ref 'refs/heads/foo.'
5152
invalid_ref 'heads/foo..bar'
5253
invalid_ref 'heads/foo?bar'
5354
valid_ref 'foo./bar'

0 commit comments

Comments
 (0)