Skip to content

Commit c01cca5

Browse files
bugfix: Repository url resolution not working properly in Windows
1 parent 7f80870 commit c01cca5

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)