(branchName)
| 40 | console.log(`locSubPath=${locSubPath}`); |
| 41 | |
| 42 | function hasBranch(branchName) { |
| 43 | console.log(`Checking for existence of branch "${branchName}" (git branch --list ${branchName})`); |
| 44 | let output = cp.execSync(`git branch --list ${branchName}`); |
| 45 | let lines = output.toString().split("\n"); |
| 46 | let found = false; |
| 47 | lines.forEach(line => { |
| 48 | found = found || (line === ` ${branchName}`); |
| 49 | }); |
| 50 | |
| 51 | return found; |
| 52 | } |
| 53 | |
| 54 | function hasAnyChanges() { |
| 55 | console.log("Checking if any files have changed (git status --porcelain)"); |
no test coverage detected