mirror of
https://code.forgejo.org/forgejo/runner.git
synced 2025-08-11 17:50:58 +00:00
fix #2 - add support for an array of 'Runs'
This commit is contained in:
parent
2ebaaf0e8c
commit
c9c2a3d905
5 changed files with 35 additions and 15 deletions
|
@ -204,7 +204,9 @@ func NewGitCloneExecutor(input NewGitCloneExecutorInput) Executor {
|
|||
return err
|
||||
}
|
||||
|
||||
w.Pull(&git.PullOptions{})
|
||||
w.Pull(&git.PullOptions{
|
||||
ReferenceName: refName,
|
||||
})
|
||||
input.Logger.Debugf("Cloned %s to %s", input.URL.String(), input.Dir)
|
||||
|
||||
err = w.Checkout(&git.CheckoutOptions{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue