mirror of
https://github.com/klaussilveira/gitlist.git
synced 2026-02-17 20:17:31 +01:00
fix url generation - now a test to nested repositories (testInitialPage test) is passing on windows os.
This commit is contained in:
@@ -42,7 +42,7 @@ class Routing
|
||||
{
|
||||
if (strpos($repoPath, $this->app['git.repos']) === 0) {
|
||||
$relativePath = substr($repoPath, strlen($this->app['git.repos']));
|
||||
return ltrim($relativePath, '/');
|
||||
return ltrim(strtr($relativePath, '\\', '/'), '/');
|
||||
} else {
|
||||
throw new \InvalidArgumentException(
|
||||
sprintf("Path '%s' does not match configured repository directory", $repoPath)
|
||||
|
||||
Reference in New Issue
Block a user