sync: Continue sync if just submodule update fails

This commit is contained in:
nemunaire 2024-02-09 17:30:00 +01:00
parent fb6a5d8063
commit 904ef661ba

View File

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