mirror of
https://forgejo.mixinet.net/actions/checkout.git
synced 2025-06-15 14:50:45 -06:00
parent
cbb722410c
commit
83f93bf255
4 changed files with 159 additions and 110 deletions
|
@ -110,7 +110,11 @@ export async function getSource(settings: IGitSourceSettings): Promise<void> {
|
|||
!fsHelper.directoryExistsSync(path.join(settings.repositoryPath, '.git'))
|
||||
) {
|
||||
core.startGroup('Initializing the repository')
|
||||
await git.init()
|
||||
const initArgs = ['init']
|
||||
if (settings.bare) {
|
||||
initArgs.push('--bare')
|
||||
}
|
||||
await git.execGit(initArgs)
|
||||
await git.remoteAdd('origin', repositoryUrl)
|
||||
core.endGroup()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue