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

Method getBranchTrackingRemote

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

Source from the content-addressed store, hash-verified

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 {

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