MCPcopy
hub / github.com/Unitech/pm2 / getRemote

Function getRemote

modules/vizion/lib/git/git.js:77–81  ·  view source on GitHub ↗
(folder, data)

Source from the content-addressed store, hash-verified

75}
76
77async function getRemote(folder, data) {
78 const out = await runGit(folder, ['remote']);
79 data.remotes = out.split('\n').filter(Boolean);
80 data.remote = data.remotes.indexOf('origin') === -1 ? data.remotes[0] : 'origin';
81}
82
83async function isCurrentBranchOnRemote(folder, data) {
84 if (!data.remote) {

Callers 2

git.jsFile · 0.85
stepFunction · 0.85

Calls 2

runGitFunction · 0.85
indexOfMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…