fix(repos): 修复提交日志接口,分支筛选无效的问题。
This commit is contained in:
parent
2d5763ac02
commit
11cf2a6c12
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user