summaryrefslogtreecommitdiff
path: root/t/t9500-gitweb-standalone-no-errors.sh
diff options
context:
space:
mode:
authorJakub Narebski <jnareb@gmail.com>2012-01-07 11:47:38 +0100
committerJunio C Hamano <gitster@pobox.com>2012-01-09 13:30:59 -0800
commit18ab83e8568878edc3f6680ebdf439ccaa5bf5db (patch)
tree9d071ef5137760a9abea2f986071af5f3779e33e /t/t9500-gitweb-standalone-no-errors.sh
parent5f4d133fca7eb3cb750f056a6fd0281ba06cd12f (diff)
downloadgit-18ab83e8568878edc3f6680ebdf439ccaa5bf5db.tar.gz
gitweb: Fix actionless dispatch for non-existent objectsjn/gitweb-unspecified-action
When gitweb URL does not provide action explicitly, e.g. http://git.example.org/repo.git/branch dispatch() tries to guess action (view to be used) based on remaining parameters. Among others it is based on the type of requested object, which gave problems when asking for non-existent branch or file (for example misspelt name). Now undefined $action from dispatch() should not result in problems. Signed-off-by: Jakub Narebski <jnareb@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t9500-gitweb-standalone-no-errors.sh')
-rwxr-xr-xt/t9500-gitweb-standalone-no-errors.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/t/t9500-gitweb-standalone-no-errors.sh b/t/t9500-gitweb-standalone-no-errors.sh
index 53297156a3..94365bb006 100755
--- a/t/t9500-gitweb-standalone-no-errors.sh
+++ b/t/t9500-gitweb-standalone-no-errors.sh
@@ -404,6 +404,14 @@ test_expect_success \
'gitweb_run "" "/.git/master:foo/"'
test_expect_success \
+ 'path_info: project/branch (non-existent)' \
+ 'gitweb_run "" "/.git/non-existent"'
+
+test_expect_success \
+ 'path_info: project/branch:filename (non-existent branch)' \
+ 'gitweb_run "" "/.git/non-existent:non-existent"'
+
+test_expect_success \
'path_info: project/branch:file (non-existent)' \
'gitweb_run "" "/.git/master:non-existent"'