MCPcopy Create free account
hub / github.com/Kong/insomnia / getBranchTrackingRemote

Method getBranchTrackingRemote

packages/insomnia/src/sync/git/git-vcs.ts:1098–1109  ·  view source on GitHub ↗
(branch?: string)

Source from the content-addressed store, hash-verified

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 {

Callers 3

getBranchRemoteInfoMethod · 0.95
pushMethod · 0.95
git-vcs.test.tsFile · 0.80

Calls 1

getCurrentBranchMethod · 0.95

Tested by

no test coverage detected