1
Fork 0
mirror of https://code.forgejo.org/actions/checkout.git synced 2026-03-28 16:03:07 +00:00

fix: review nits

This commit is contained in:
Drew Ballance 2026-03-25 12:54:48 -05:00
parent 70525c3952
commit 8461cead75
No known key found for this signature in database
GPG key ID: FFF2E6A4496D5858
3 changed files with 35 additions and 27 deletions

5
dist/index.js vendored
View file

@ -411,10 +411,11 @@ class GitAuthHelper {
let gitDir;
try {
const constructed = path.join(this.git.getWorkingDirectory(), '.git');
gitDir = fs.realpathSync(constructed).replace(/\\/g, '/');
const resolved = yield fs.promises.realpath(constructed);
gitDir = resolved.replace(/\\/g, '/');
}
catch (_a) {
// Fall back to constructed path if realpathSync fails
// Fall back to constructed path if realpath fails
gitDir = path.join(this.git.getWorkingDirectory(), '.git');
gitDir = gitDir.replace(/\\/g, '/');
}