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