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 44e21b102e
commit 2b471fbff0
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{