6
0
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:
Grzegorz Dlugoszewski
2020-06-12 17:01:35 +02:00
parent f9f2553231
commit 823a522a97
8 changed files with 190 additions and 26 deletions

View File

@@ -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)
}
}
}