syzkaller/pkg/vcs/akaros.go
Dmitry Vyukov 5ed211ca96 pkg/vcs: refactor bisection support
In preparation for syz-ci bisection:
- move bisection function into a separate interface
  they look out of place in vcs.Repo because most OSes
  don't implement it and most users don't case
- extract author name and more CC emails for commits
- move linux-specific PreviousReleaseTags into linux.go
- fix inconclusive bisection (more than 1 potential commits)
- add tests fr bisection
- add maintainers returned from get_maintainers.pl for commits
  that don't have enough emails (e.g. only author email)

Update #501
2019-03-17 18:06:44 +01:00

28 lines
626 B
Go

// Copyright 2018 syzkaller project authors. All rights reserved.
// Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file.
package vcs
import (
"path/filepath"
)
type akaros struct {
*git
dropbear *git
}
func newAkaros(vm, dir string) *akaros {
return &akaros{
git: newGit(dir, nil),
dropbear: newGit(filepath.Join(dir, "dropbear"), nil),
}
}
func (ctx *akaros) Poll(repo, branch string) (*Commit, error) {
if _, err := ctx.dropbear.Poll("https://github.com/akaros/dropbear-akaros", "akaros"); err != nil {
return nil, err
}
return ctx.git.Poll(repo, branch)
}