From 11cf2a6c12ccb83451852dfe5f0de5e624f862e5 Mon Sep 17 00:00:00 2001 From: Ivan Li Date: Sun, 28 Feb 2021 02:23:20 +0800 Subject: [PATCH] =?UTF-8?q?fix(repos):=20=E4=BF=AE=E5=A4=8D=E6=8F=90?= =?UTF-8?q?=E4=BA=A4=E6=97=A5=E5=BF=97=E6=8E=A5=E5=8F=A3=EF=BC=8C=E5=88=86?= =?UTF-8?q?=E6=94=AF=E7=AD=9B=E9=80=89=E6=97=A0=E6=95=88=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/repos/repos.service.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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) {