Check for submodule updates right after first clone

This commit is contained in:
southerntofu 2022-01-11 16:07:46 +01:00
parent 250e4372c4
commit 697173bb81
1 changed files with 6 additions and 2 deletions

View File

@ -68,11 +68,15 @@ fn main() -> Result<(), std::io::Error> {
// Skip further processing
continue;
}
// New repo just cloned
// TODO: submodule and submodule updates
// New repo just cloned. Check for submodule updates
cd(&source_dir).expect("Failed to change working dir");
if task.subupdates {
let _had_subupdates = repo.subupdate();
}
// Checkout specific branch?
// TODO: To avoid submodule inconsistencies between branches, we should directly clone a specific branch
task.checkout();
task.run();
} else {