MCPcopy Create free account
hub / github.com/6pac/SlickGrid / gitPushToCurrentBranch

Function gitPushToCurrentBranch

scripts/git-utils.mjs:61–65  ·  view source on GitHub ↗
(remote = 'origin', { cwd, dryRun })

Source from the content-addressed store, hash-verified

59 * @returns {Promise<any>}
60 */
61export async function gitPushToCurrentBranch(remote = 'origin', { cwd, dryRun }) {
62 const branchName = await gitCurrentBranchName({ cwd });
63 const execArgs = ['push', remote, branchName];
64 return execAsyncPiped('git', execArgs, { cwd }, dryRun);
65}
66
67/**
68 * @param {String} tag - tag name

Callers 1

release.mjsFile · 0.90

Calls 2

execAsyncPipedFunction · 0.90
gitCurrentBranchNameFunction · 0.85

Tested by

no test coverage detected