Recognize git Repositories of the form 'identifier.git' in the apache perl module.

This commit is contained in:
Felix Schäfer 2011-05-16 06:11:59 -07:00
parent c51eb7059a
commit 90c713d2d2
1 changed files with 1 additions and 0 deletions

View File

@ -481,6 +481,7 @@ sub get_project_identifier {
my $location = $r->location;
my ($identifier) = $r->uri =~ m{$location/*([^/]+)};
$identifier =~ s/\.git$// if (defined $cfg->{RedmineGitSmartHttp} and $cfg->{RedmineGitSmartHttp});
$identifier;
}