We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8da3cf7 commit 168fac4Copy full SHA for 168fac4
src/cargo/sources/registry/remote.rs
@@ -88,8 +88,9 @@ impl<'cfg> RemoteRegistry<'cfg> {
88
// things that we don't want.
89
let mut opts = git2::RepositoryInitOptions::new();
90
opts.external_template(false);
91
- Ok(git2::Repository::init_opts(&path, &opts)
92
- .with_context(|| "failed to initialize index git repository")?)
+ Ok(git2::Repository::init_opts(&path, &opts).with_context(|| {
+ format!("failed to initialize index git repository (in {:?})", path)
93
+ })?)
94
}
95
96
})
0 commit comments