Skip to content

Commit 17ff1c7

Browse files
fix %5C issue in the call
codedge#408 when I debugged the issue it was with the coma separator constant so when I changed it worked
1 parent e8a3865 commit 17ff1c7

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/SourceRepositoryTypes/GithubRepositoryTypes/GithubBranchType.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,10 @@ public function getVersionAvailable(string $prepend = '', string $append = ''):
9292

9393
final public function getReleases(): Response
9494
{
95-
$url = DIRECTORY_SEPARATOR.'repos'
96-
.DIRECTORY_SEPARATOR.$this->config['repository_vendor']
97-
.DIRECTORY_SEPARATOR.$this->config['repository_name']
98-
.DIRECTORY_SEPARATOR.'commits'
95+
$url = '/'.'repos'
96+
.'/'.$this->config['repository_vendor']
97+
.'/'.$this->config['repository_name']
98+
.'/'.'commits'
9999
.'?sha='.$this->config['use_branch'];
100100

101101
$headers = [];
@@ -111,10 +111,10 @@ final public function getReleases(): Response
111111

112112
private function generateArchiveUrl(string $name): string
113113
{
114-
return DIRECTORY_SEPARATOR.'repos'
115-
.DIRECTORY_SEPARATOR.$this->config['repository_vendor']
116-
.DIRECTORY_SEPARATOR.$this->config['repository_name']
117-
.DIRECTORY_SEPARATOR.'zipball'
118-
.DIRECTORY_SEPARATOR.$name;
114+
return '/'.'repos'
115+
.'/'.$this->config['repository_vendor']
116+
.'/'.$this->config['repository_name']
117+
.'/'.'zipball'
118+
.'/'.$name;
119119
}
120120
}

0 commit comments

Comments
 (0)