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