From 58e8587f648cb149e15553e4a43749df340adc8b Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Wed, 27 Jun 2018 13:47:15 +0200 Subject: 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. --- pkg/instance/instance.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkg/instance/instance.go') 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") -- cgit mrf-deployment