Recognize git Repositories of the form 'identifier.git' in the apache perl module.
This commit is contained in:
parent
c51eb7059a
commit
90c713d2d2
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue