From 43da5e3a1baae2b2fa4f00e2218632e882654517 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Wed, 27 Jun 2018 13:07:03 +0200 Subject: pkg/vcs: move from pkg/git Rename pkg/git to pkg/vcs because we need to support not only git. --- pkg/instance/instance.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pkg/instance/instance.go') diff --git a/pkg/instance/instance.go b/pkg/instance/instance.go index 4e28e0b92..a41a4cbc2 100644 --- a/pkg/instance/instance.go +++ b/pkg/instance/instance.go @@ -16,10 +16,10 @@ import ( "github.com/google/syzkaller/pkg/build" "github.com/google/syzkaller/pkg/csource" - "github.com/google/syzkaller/pkg/git" "github.com/google/syzkaller/pkg/log" "github.com/google/syzkaller/pkg/osutil" "github.com/google/syzkaller/pkg/report" + "github.com/google/syzkaller/pkg/vcs" "github.com/google/syzkaller/prog" "github.com/google/syzkaller/syz-manager/mgrconfig" "github.com/google/syzkaller/vm" @@ -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 := git.CheckoutCommit(cfg.Syzkaller, repo, commit); err != nil { + if _, err := vcs.CheckoutCommit(cfg.Syzkaller, repo, commit); err != nil { return fmt.Errorf("failed to checkout syzkaller repo: %v", err) } cmd := osutil.Command("make", "target") -- cgit mrf-deployment