sync: Continue sync if just submodule update fails
This commit is contained in:
parent
fb6a5d8063
commit
904ef661ba
@ -142,8 +142,7 @@ func (i GitImporter) Sync() error {
|
|||||||
cmdsubupdate := exec.Command("git", "-C", i.li.Base, "submodule", "update")
|
cmdsubupdate := exec.Command("git", "-C", i.li.Base, "submodule", "update")
|
||||||
stdout, err = cmdsubupdate.CombinedOutput()
|
stdout, err = cmdsubupdate.CombinedOutput()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Printf("Local git repository submodule init failed: %s\n%s", err, stdout)
|
log.Printf("Local git repository submodule update failed: %s\n%s", err, stdout)
|
||||||
return fmt.Errorf("%w:\n%s", err, stdout)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user