(git: AuthenticatedGitClient)
| 136 | } |
| 137 | |
| 138 | static getLatestShas(git: AuthenticatedGitClient) { |
| 139 | /** The latest sha for the g3 branch. */ |
| 140 | const g3 = this.getShaForBranchLatest(git, 'g3'); |
| 141 | /** The latest sha for the main branch. */ |
| 142 | const main = this.getShaForBranchLatest(git, git.mainBranchName); |
| 143 | |
| 144 | if (g3 === null || main === null) { |
| 145 | Log.debug(`Either the g3 or ${git.mainBranchName} was unable to be retrieved`); |
| 146 | return null; |
| 147 | } |
| 148 | |
| 149 | return {g3, main}; |
| 150 | } |
| 151 | } |
no test coverage detected