(branch?: string)
| 1096 | } |
| 1097 | |
| 1098 | async getBranchTrackingRemote(branch?: string): Promise<string | null> { |
| 1099 | const currentBranch = branch || (await this.getCurrentBranch()); |
| 1100 | try { |
| 1101 | const remote = await git.getConfig({ |
| 1102 | ...this._baseOpts, |
| 1103 | path: `branch.${currentBranch}.remote`, |
| 1104 | }); |
| 1105 | return remote || null; |
| 1106 | } catch { |
| 1107 | return null; |
| 1108 | } |
| 1109 | } |
| 1110 | |
| 1111 | async getRemoteUrl(remoteName: string): Promise<string | null> { |
| 1112 | try { |
no test coverage detected