mirror of
https://github.com/grdl/git-get.git
synced 2026-02-09 16:49:18 +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:
@@ -61,7 +61,7 @@ func TestURLParse(t *testing.T) {
|
||||
got := URLToPath(url)
|
||||
|
||||
if got != test.want {
|
||||
t.Errorf("Wrong result of parsing Path: %s, got: %s; want: %s", test.in, got, test.want)
|
||||
t.Errorf("Wrong result of parsing Path: %s, got: %s; wantBranch: %s", test.in, got, test.want)
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -79,7 +79,7 @@ func TestInvalidURLParse(t *testing.T) {
|
||||
for _, in := range invalidURLs {
|
||||
got, err := ParseURL(in)
|
||||
if err == nil {
|
||||
t.Errorf("Wrong result of parsing invalid Path: %s, got: %s, want: error", in, got)
|
||||
t.Errorf("Wrong result of parsing invalid Path: %s, got: %s, wantBranch: error", in, got)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user