Skip to content

Commit 67a6715

Browse files
Merge pull request #41 from CodeWithKyrian/40-problem-with-curl-request-in-downloaderphp
bugfix: Repository url resolution not working properly in Windows
2 parents 7f80870 + c01cca5 commit 67a6715

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Utils/Hub.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -203,10 +203,10 @@ private static function resolveRepositoryURL(string $pathOrRepoID, string $revis
203203

204204
$remotePath = str_replace(
205205
['{model}', '{revision}', '{file}'],
206-
[$pathOrRepoID, $revision, joinPaths($subFolder, $fileName)],
206+
[$pathOrRepoID, $revision, $subFolder === '' ? $fileName : "$subFolder/$fileName"],
207207
Transformers::$remotePathTemplate
208208
);
209209

210-
return joinPaths($remoteHost, $remotePath);
210+
return "$remoteHost/$remotePath";
211211
}
212212
}

0 commit comments

Comments
 (0)