diff --git a/src/repos/repos.service.ts b/src/repos/repos.service.ts index 7561884..39bdc6e 100644 --- a/src/repos/repos.service.ts +++ b/src/repos/repos.service.ts @@ -55,10 +55,9 @@ export class ReposService { }); const git = await this.getGit(project); await git.fetch(); - return await git.log({ - '--branches': dto.branch ?? '', - '--remotes': DEFAULT_REMOTE_NAME, - }); + return await git.log( + dto.branch ? ['--branches', dto.branch, '--'] : ['--all'], + ); } async listBranches(dto: ListBranchesArgs) {