aboutsummaryrefslogtreecommitdiffstats
path: root/submodule.go
diff options
context:
space:
mode:
authorMáximo Cuadros <mcuadros@gmail.com>2017-02-13 00:40:14 +0100
committerMáximo Cuadros <mcuadros@gmail.com>2017-02-13 00:40:14 +0100
commitc551c29a93882658d4b34860b5300de0f3456059 (patch)
treeda06713530f3c41cfd731fca4c499820b9803e3d /submodule.go
parentb18d6490aefe8509791843136530e3426d0c8200 (diff)
downloadgo-git-c551c29a93882658d4b34860b5300de0f3456059.tar.gz
submodule init implementation
Diffstat (limited to 'submodule.go')
-rw-r--r--submodule.go8
1 files changed, 7 insertions, 1 deletions
diff --git a/submodule.go b/submodule.go
index 32f730b..ea099f0 100644
--- a/submodule.go
+++ b/submodule.go
@@ -1,6 +1,10 @@
package git
-import "srcd.works/go-git.v4/plumbing"
+import (
+ "fmt"
+
+ "srcd.works/go-git.v4/plumbing"
+)
type Submodule struct {
Name string
@@ -21,7 +25,9 @@ type Submodules []*Submodule
func (s Submodules) Init() error {
for _, sub := range s {
+ fmt.Println("clone", sub.URL)
if err := sub.Init(); err != nil {
+ fmt.Println(err)
return err
}
}