fix: refs #6130 code
This commit is contained in:
parent
2084d047b2
commit
7acb4ee523
|
@ -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