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