]> Lady’s Gitweb - Gitweb/commit
gitweb: Secure against commit-ish/tree-ish with the same name as path
authorJakub Narebski <redacted>
Mon, 30 Oct 2006 21:29:06 +0000 (22:29 +0100)
committerLady <redacted>
Mon, 6 Apr 2026 04:07:11 +0000 (00:07 -0400)
commite53e58225f7186339ac23cd7e0649a355a6a71566d3e9babf41fdfe3396a1588
treeeae61ecdb0ccfdde9c41ef6081c4038ac877aef6126560ceade5593f356b67f8
parentdbd90ac18ab8c52e9b5803aefc3e1538e444a628e7cd35ced61348aa98605240
gitweb: Secure against commit-ish/tree-ish with the same name as path

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 <redacted>
Signed-off-by: Junio C Hamano <redacted>
gitweb.perl
This page took 0.255489 seconds and 4 git commands to generate.