fix(repos): 修复提交日志接口,分支筛选无效的问题。

This commit is contained in:
Ivan Li 2021-02-28 02:23:20 +08:00
parent 2d5763ac02
commit 11cf2a6c12

View File

@ -55,10 +55,9 @@ export class ReposService {
}); });
const git = await this.getGit(project); const git = await this.getGit(project);
await git.fetch(); await git.fetch();
return await git.log({ return await git.log(
'--branches': dto.branch ?? '', dto.branch ? ['--branches', dto.branch, '--'] : ['--all'],
'--remotes': DEFAULT_REMOTE_NAME, );
});
} }
async listBranches(dto: ListBranchesArgs) { async listBranches(dto: ListBranchesArgs) {