author | Jakub Narebski <jnareb@gmail.com> | |
Sat, 12 May 2007 19:16:34 +0000 (21:16 +0200) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Sun, 13 May 2007 19:12:30 +0000 (12:12 -0700) | ||
commit | 198a2a8a69921327513c32512bdac77f52ab95d3 | |
tree | 81e495a0ad572154b0f0819e40d5d3a061c23324 | tree | snapshot |
parent | a2983cb7406210c69415b35528f83afa8e9c7b68 | commit | diff |
gitweb: Check if requested object exists
Try to avoid "Use of uninitialized value ..." errors caused by bad
revision, incorrect filename, wrong object id, bad file etc. (wrong
value of 'h', 'hb', 'f', etc. parameters). This avoids polluting web
server errors log.
Correct git_get_hash_by_path and parse_commit_text (and, in turn,
parse_commit) to return undef if object does not exist. Check in
git_tag if requested tag exists.
Signed-off-by: Jakub Narebski <jnareb@gmail.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Try to avoid "Use of uninitialized value ..." errors caused by bad
revision, incorrect filename, wrong object id, bad file etc. (wrong
value of 'h', 'hb', 'f', etc. parameters). This avoids polluting web
server errors log.
Correct git_get_hash_by_path and parse_commit_text (and, in turn,
parse_commit) to return undef if object does not exist. Check in
git_tag if requested tag exists.
Signed-off-by: Jakub Narebski <jnareb@gmail.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
gitweb/gitweb.perl | diff | blob | history |