fix: refs #6130 code:code

This commit is contained in:
Pablo Natek 2024-04-05 14:58:20 +02:00
parent 70bdb52371
commit 1e669e99f8
1 changed files with 1 additions and 1 deletions

View File

@ -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');