Commit ef067d51 authored by Alberto Fanjul's avatar Alberto Fanjul

Update submodules at clone

parent acb73d98
Pipeline #50589 passed with stages
in 8 minutes and 4 seconds
......@@ -344,6 +344,15 @@ class DashView : Gtk.Grid, GitgExt.UIElement, GitgExt.Activity, GitgExt.Selectab
clone_options.set_fetch_options(fetch_options);
repository = (Repository)Ggit.Repository.clone(url, location, clone_options);
repository.submodule_foreach((submodule, name) => {
try {
submodule.update(true, null);
} catch (Error e) {
stderr.printf(@"ERROR: failed to update submodule $(name): $(e.message)\n");
}
return 0;
});
});
return repository;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment