({ cwd })
| 26 | * @returns {Promise<any>} |
| 27 | */ |
| 28 | export async function gitCurrentBranchName({ cwd }) { |
| 29 | const execArgs = ['branch', '--show-current']; |
| 30 | const procRtn = await execAsyncPiped('git', execArgs, { cwd }); |
| 31 | return procRtn.stdout; |
| 32 | } |
| 33 | |
| 34 | /** |
| 35 | * @param {String} tag - tag name |
no test coverage detected