1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
// 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(dir string, opts []RepoOpt) *akaros {
return &akaros{
git: newGit(dir, nil, opts),
dropbear: newGit(filepath.Join(dir, "dropbear"), nil, opts),
}
}
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)
}
|