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);
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) {