summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2379d61)
raw | patch | inline | side by side (parent: 2379d61)
author | Aneesh Kumar K.V <aneesh.kumar@gmail.com> | |
Fri, 3 Nov 2006 05:11:45 +0000 (10:41 +0530) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Sat, 4 Nov 2006 09:51:35 +0000 (01:51 -0800) |
Without this change we get a wrong $pfxlen value and the check_export_ok()
checks with with a wrong directory name. Without this patch the below
$projects_list fails with gitweb
$projects_list = "/tmp/a/b/";
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@gmail.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
checks with with a wrong directory name. Without this patch the below
$projects_list fails with gitweb
$projects_list = "/tmp/a/b/";
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@gmail.com>
Signed-off-by: Junio C Hamano <junkio@cox.net>
gitweb/gitweb.perl | patch | blob | history |
diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl
index 3dfa59f616c78cea8147e58aee1accde68c58046..3759be37b8830ececee270c212a99d1a03f8b9fa 100755 (executable)
--- a/gitweb/gitweb.perl
+++ b/gitweb/gitweb.perl
if (-d $projects_list) {
# search in directory
my $dir = $projects_list;
+ # remove the trailing "/"
+ $dir =~ s!/+$!!;
my $pfxlen = length("$dir");
File::Find::find({