Skip to content

Commit

Permalink
git: do not validate submodules of fresh checkouts
Browse files Browse the repository at this point in the history
  • Loading branch information
osiewicz committed Sep 27, 2024
1 parent 43e3fa9 commit 827deaf
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/cargo/sources/git/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -181,9 +181,13 @@ impl GitDatabase {
.filter(|co| co.is_fresh())
{
Some(co) => co,
None => GitCheckout::clone_into(dest, self, rev, gctx)?,
None => {
let checkout = GitCheckout::clone_into(dest, self, rev, gctx)?;
checkout.update_submodules(gctx)?;
checkout
}
};
checkout.update_submodules(gctx)?;

Ok(checkout)
}

Expand Down

0 comments on commit 827deaf

Please sign in to comment.