diff options
Diffstat (limited to 'pkg/vcs')
| -rw-r--r-- | pkg/vcs/git_test_util.go | 19 | ||||
| -rw-r--r-- | pkg/vcs/vcs.go | 4 |
2 files changed, 0 insertions, 23 deletions
diff --git a/pkg/vcs/git_test_util.go b/pkg/vcs/git_test_util.go index 0595dc533..9d5ef1edc 100644 --- a/pkg/vcs/git_test_util.go +++ b/pkg/vcs/git_test_util.go @@ -110,22 +110,3 @@ func CreateTestRepo(t *testing.T, baseDir, name string) *TestRepo { repo.CommitFileChange("master", "1") return repo } - -func CloneTestRepo(t *testing.T, baseDir, name string, originRepo *TestRepo) *TestRepo { - dir := filepath.Join(baseDir, name) - if err := osutil.MkdirAll(dir); err != nil { - t.Fatal(err) - } - ignoreCC := map[string]bool{ - "stable@vger.kernel.org": true, - } - repo := &TestRepo{ - t: t, - Dir: dir, - name: filepath.Base(dir), - Commits: make(map[string]map[string]*Commit), - repo: newGitRepo(dir, ignoreCC, []RepoOpt{OptPrecious, OptDontSandbox}), - } - repo.Git("clone", originRepo.Dir, repo.Dir) - return repo -} diff --git a/pkg/vcs/vcs.go b/pkg/vcs/vcs.go index b0a2dc8eb..c9a440ed1 100644 --- a/pkg/vcs/vcs.go +++ b/pkg/vcs/vcs.go @@ -362,10 +362,6 @@ func CommitLink(url, hash string) string { return link(url, hash, "", 0, 0) } -func TreeLink(url, hash string) string { - return link(url, hash, "", 0, 1) -} - func LogLink(url, hash string) string { return link(url, hash, "", 0, 2) } |
