mirror of
https://github.com/rust-lang/cargo
synced 2024-08-28 03:39:31 +00:00
address PR review (see details)
* remove renovate group as it's not needed anymore * repository discovery will open with isolation
This commit is contained in:
parent
9bf91497db
commit
363d2da187
9
.github/renovate.json5
vendored
9
.github/renovate.json5
vendored
|
@ -67,15 +67,6 @@
|
|||
internalChecksFilter: 'strict',
|
||||
groupName: 'msrv',
|
||||
},
|
||||
{
|
||||
matchManagers: [
|
||||
'cargo',
|
||||
],
|
||||
matchPackageNames: [
|
||||
'gix',
|
||||
],
|
||||
groupName: 'gix',
|
||||
},
|
||||
// Goals:
|
||||
// - Rollup safe upgrades to reduce CI runner load
|
||||
// - Have lockfile and manifest in-sync (implicit rules)
|
||||
|
|
|
@ -263,8 +263,12 @@ impl<'gctx> PathSource<'gctx> {
|
|||
/// Returns [`Some(gix::Repository)`](gix::Repository) if there is a sibling `Cargo.toml` and `.git`
|
||||
/// directory; otherwise, the caller should fall back on full file list.
|
||||
fn discover_gix_repo(&self, root: &Path) -> CargoResult<Option<gix::Repository>> {
|
||||
let repo = match gix::discover(root) {
|
||||
Ok(repo) => repo,
|
||||
let mut mapping = gix::sec::trust::Mapping::default();
|
||||
mapping.full = gix::open::Options::isolated();
|
||||
mapping.reduced = gix::open::Options::isolated();
|
||||
let repo = match gix::ThreadSafeRepository::discover_opts(root, Default::default(), mapping)
|
||||
{
|
||||
Ok(repo) => repo.to_thread_local(),
|
||||
Err(e) => {
|
||||
tracing::debug!(
|
||||
"could not discover git repo at or above {}: {}",
|
||||
|
|
Loading…
Reference in a new issue