fix: refs #6130 code:code
This commit is contained in:
parent
70bdb52371
commit
1e669e99f8
|
@ -21,7 +21,7 @@ if (branchName) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function getCurrentBranchName(p = process.cwd()) {
|
function getCurrentBranchName(p = process.cwd()) {
|
||||||
if (!fs.existsSync(p)) return false;
|
if (!fs.existsSync(p)) return false;
|
||||||
|
|
||||||
const gitHeadPath = path.join(p, '.git', 'HEAD');
|
const gitHeadPath = path.join(p, '.git', 'HEAD');
|
||||||
|
|
Loading…
Reference in New Issue