(branch: string, options?: ExecSyncOptions)
| 25 | }; |
| 26 | |
| 27 | export const push = (branch: string, options?: ExecSyncOptions) => { |
| 28 | if (branch === 'master') { |
| 29 | throw new Error(`No pushing to 'master' branch`); |
| 30 | } |
| 31 | |
| 32 | runCommand(`git push origin ${branch}`, options); |
| 33 | }; |
| 34 | |
| 35 | export const branchExists = (branch: string, options?: ExecSyncOptions) => { |
| 36 | const foundRemoteBranches = runCommand(`git ls-remote --heads origin ${branch}`, options); |
nothing calls this directly
no test coverage detected