mirror of
https://github.com/grdl/git-get.git
synced 2026-02-05 13:43:48 +00:00
Add a --bundle flag accepting a bundle file of repos to clone
Also refactor CloneRepo to accept CloneOpts as agruments - makes it cleaner and easier to test.
This commit is contained in:
@@ -247,7 +247,14 @@ func (r *Repo) clone(t *testing.T, branch string) *Repo {
|
||||
repoURL, err := url.Parse("file://" + r.Path)
|
||||
checkFatal(t, err)
|
||||
|
||||
repo, err := CloneRepo(repoURL, dir, branch, true)
|
||||
cloneOpts := &CloneOpts{
|
||||
URL: repoURL,
|
||||
Path: dir,
|
||||
Branch: branch,
|
||||
Quiet: true,
|
||||
}
|
||||
|
||||
repo, err := CloneRepo(cloneOpts)
|
||||
checkFatal(t, err)
|
||||
|
||||
return repo
|
||||
|
||||
Reference in New Issue
Block a user