Skip to content

Commit ff7feac

Browse files
committed
Fix root directory clone bug
1 parent 48786fe commit ff7feac

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/VCS/Adapter/Git/Gitea.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -897,6 +897,10 @@ public function updateCommitStatus(string $repositoryName, string $commitHash, s
897897
*/
898898
public function generateCloneCommand(string $owner, string $repositoryName, string $version, string $versionType, string $directory, string $rootDirectory): string
899899
{
900+
if (empty($rootDirectory)) {
901+
$rootDirectory = '*';
902+
}
903+
900904
$cloneUrl = "{$this->giteaUrl}/{$owner}/{$repositoryName}";
901905
if (!empty($this->accessToken)) {
902906
$cloneUrl = str_replace('://', "://{$owner}:{$this->accessToken}@", $this->giteaUrl) . "/{$owner}/{$repositoryName}";

0 commit comments

Comments
 (0)