mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
debug
This commit is contained in:
@@ -47,6 +47,7 @@ function getCurrentCommitSha () {
|
||||
|
||||
function getCurrentBranch () {
|
||||
const result = cp.spawnSync('git', ['symbolic-ref', '--short', 'HEAD'], { encoding: 'utf8' });
|
||||
console.log(result);
|
||||
if (result.status !== 0) {
|
||||
throw new Error('Failed to get current branch');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user