MCPcopy
hub / github.com/Kong/insomnia / getRemoteOriginURI

Method getRemoteOriginURI

packages/insomnia/src/sync/git/git-vcs.ts:191–203  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

189 }
190
191 async getRemoteOriginURI() {
192 try {
193 const remoteOriginURI = await git.getConfig({
194 ...this._baseOpts,
195 path: 'remote.origin.url',
196 });
197
198 return remoteOriginURI;
199 } catch {
200 // Ignore error
201 return this._baseOpts.uri || '';
202 }
203 }
204
205 async initFromClone({ repoId, url, credentialsId, directory, fs, gitDirectory, ref }: InitFromCloneOptions) {
206 this._baseOpts = {

Callers 3

initMethod · 0.95
fetchRemoteBranchesMethod · 0.95
logMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected