diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2018-06-27 13:47:15 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2018-06-27 13:57:21 +0200 |
| commit | 58e8587f648cb149e15553e4a43749df340adc8b (patch) | |
| tree | 26d8a9e9e402bbe9e8a6b3fd81b702e5149b7bcf /pkg/instance | |
| parent | 43da5e3a1baae2b2fa4f00e2218632e882654517 (diff) | |
pkg/vcs: pave way for multi-vcs support
Wrap current git interface in abstract interface.
Provide constructor that create repo interface for the given os/vm.
Diffstat (limited to 'pkg/instance')
| -rw-r--r-- | pkg/instance/instance.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/instance/instance.go b/pkg/instance/instance.go index a41a4cbc2..79616f3fa 100644 --- a/pkg/instance/instance.go +++ b/pkg/instance/instance.go @@ -59,7 +59,7 @@ func (env *Env) BuildSyzkaller(repo, commit string) error { if srcIndex == -1 { return fmt.Errorf("syzkaller path %q is not in GOPATH", cfg.Syzkaller) } - if _, err := vcs.CheckoutCommit(cfg.Syzkaller, repo, commit); err != nil { + if _, err := vcs.NewSyzkallerRepo(cfg.Syzkaller).CheckoutCommit(repo, commit); err != nil { return fmt.Errorf("failed to checkout syzkaller repo: %v", err) } cmd := osutil.Command("make", "target") |
