diff --git a/src/SourceRepositoryTypes/GithubRepositoryTypes/GithubBranchType.php b/src/SourceRepositoryTypes/GithubRepositoryTypes/GithubBranchType.php index eeafe03..6a7a552 100644 --- a/src/SourceRepositoryTypes/GithubRepositoryTypes/GithubBranchType.php +++ b/src/SourceRepositoryTypes/GithubRepositoryTypes/GithubBranchType.php @@ -92,10 +92,10 @@ public function getVersionAvailable(string $prepend = '', string $append = ''): final public function getReleases(): Response { - $url = DIRECTORY_SEPARATOR.'repos' - .DIRECTORY_SEPARATOR.$this->config['repository_vendor'] - .DIRECTORY_SEPARATOR.$this->config['repository_name'] - .DIRECTORY_SEPARATOR.'commits' + $url = '/'.'repos' + .'/'.$this->config['repository_vendor'] + .'/'.$this->config['repository_name'] + .'/'.'commits' .'?sha='.$this->config['use_branch']; $headers = []; @@ -111,10 +111,10 @@ final public function getReleases(): Response private function generateArchiveUrl(string $name): string { - return DIRECTORY_SEPARATOR.'repos' - .DIRECTORY_SEPARATOR.$this->config['repository_vendor'] - .DIRECTORY_SEPARATOR.$this->config['repository_name'] - .DIRECTORY_SEPARATOR.'zipball' - .DIRECTORY_SEPARATOR.$name; + return '/'.'repos' + .'/'.$this->config['repository_vendor'] + .'/'.$this->config['repository_name'] + .'/'.'zipball' + .'/'.$name; } }