From aaf8167bb1d18291117c60069015fd6ec1b8796c Mon Sep 17 00:00:00 2001 From: Tudor Brindus Date: Mon, 14 Oct 2019 22:46:02 -0400 Subject: [PATCH] Fix typo in git index initialization error path --- src/cargo/sources/registry/remote.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cargo/sources/registry/remote.rs b/src/cargo/sources/registry/remote.rs index 27928c35825..7d83b113310 100644 --- a/src/cargo/sources/registry/remote.rs +++ b/src/cargo/sources/registry/remote.rs @@ -77,7 +77,7 @@ impl<'cfg> RemoteRegistry<'cfg> { let mut opts = git2::RepositoryInitOptions::new(); opts.external_template(false); Ok(git2::Repository::init_opts(&path, &opts) - .chain_err(|| "failed to initialized index git repository")?) + .chain_err(|| "failed to initialize index git repository")?) } } })