(
git: GitCommandManager,
branchCommits: Commit[],
baseCommit: Commit,
repoPath: string,
branchRepository: string,
branch: string
)
| 291 | } |
| 292 | |
| 293 | async pushSignedCommits( |
| 294 | git: GitCommandManager, |
| 295 | branchCommits: Commit[], |
| 296 | baseCommit: Commit, |
| 297 | repoPath: string, |
| 298 | branchRepository: string, |
| 299 | branch: string |
| 300 | ): Promise<CommitResponse> { |
| 301 | let headCommit: CommitResponse = { |
| 302 | sha: baseCommit.sha, |
| 303 | tree: baseCommit.tree, |
| 304 | verified: false |
| 305 | } |
| 306 | for (const commit of branchCommits) { |
| 307 | headCommit = await this.createCommit( |
| 308 | git, |
| 309 | commit, |
| 310 | headCommit, |
| 311 | repoPath, |
| 312 | branchRepository |
| 313 | ) |
| 314 | } |
| 315 | await this.createOrUpdateRef(branchRepository, branch, headCommit.sha) |
| 316 | return headCommit |
| 317 | } |
| 318 | |
| 319 | private async createCommit( |
| 320 | git: GitCommandManager, |
no test coverage detected