mirror of
https://forgejo.stefka.eu/jiriks74/create-pull-request.git
synced 2025-01-18 16:01:06 +01:00
use realpathSync for fileExistsSync check
This commit is contained in:
parent
6ea29d2e6e
commit
e0776265c5
1 changed files with 4 additions and 1 deletions
|
@ -2,6 +2,7 @@ import * as exec from '@actions/exec'
|
|||
import * as io from '@actions/io'
|
||||
import * as utils from './utils'
|
||||
import * as path from 'path'
|
||||
import { realpathSync } from 'fs'
|
||||
|
||||
const tagsRefSpec = '+refs/tags/*:refs/tags/*'
|
||||
|
||||
|
@ -114,7 +115,9 @@ export class GitCommandManager {
|
|||
|
||||
args.push('--progress', '--no-recurse-submodules')
|
||||
if (
|
||||
utils.fileExistsSync(path.join(this.workingDirectory, '.git', 'shallow'))
|
||||
utils.fileExistsSync(
|
||||
realpathSync(path.join(this.workingDirectory, '.git', 'shallow'))
|
||||
)
|
||||
) {
|
||||
args.push('--unshallow')
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue