From d2808d16101e113096b3a1c02e3f91122de74f15 Mon Sep 17 00:00:00 2001 From: Carlos Martín Nieto Date: Sun, 28 Jun 2015 00:58:31 +0200 Subject: Create a SubmoduleCollection for managing submodules Similarly to RemoteCollection, this allows us to namespace the submodule operations much more concisely and removes API on the Repository. --- submodule_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'submodule_test.go') diff --git a/submodule_test.go b/submodule_test.go index 27bc193..43c890a 100644 --- a/submodule_test.go +++ b/submodule_test.go @@ -10,11 +10,11 @@ func TestSubmoduleForeach(t *testing.T) { seedTestRepo(t, repo) - _, err := repo.AddSubmodule("http://example.org/submodule", "submodule", true) + _, err := repo.Submodules.Add("http://example.org/submodule", "submodule", true) checkFatal(t, err) i := 0 - err = repo.ForeachSubmodule(func(sub *Submodule, name string) int { + err = repo.Submodules.Foreach(func(sub *Submodule, name string) int { i++ return 0 }) -- cgit v1.2.3