1
0
Fork 0
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:
Casey Lee 2019-01-15 09:57:36 -08:00
parent 2ebaaf0e8c
commit c9c2a3d905
5 changed files with 35 additions and 15 deletions

View file

@ -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{