(remote = 'origin', { cwd, dryRun })
| 59 | * @returns {Promise<any>} |
| 60 | */ |
| 61 | export 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 |
no test coverage detected