gitweb: Secure against commit-ish/tree-ish with the same name as path
authorJakub Narebski <jnareb@gmail.com>
Mon, 30 Oct 2006 21:29:06 +0000 (22:29 +0100)
committerJunio C Hamano <junkio@cox.net>
Wed, 1 Nov 2006 20:15:39 +0000 (12:15 -0800)
Add "--" after <commit-ish> or <tree-ish> argument to clearly mark it
as <commit-ish> or <tree-ish> and not pathspec, securing against refs
with the same names as files or directories in [live] repository.

Some wrapping to reduce line length as well.

[jc: with "oops, ls-tree does not want --" fix-up manually applied.]

Signed-off-by: Jakub Narebski <jnareb@gmail.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
No differences found