diff --git a/cargo-registry/src/dummy_git_index.rs b/cargo-registry/src/dummy_git_index.rs index 1b36f485ebff3e..a04792e9122698 100644 --- a/cargo-registry/src/dummy_git_index.rs +++ b/cargo-registry/src/dummy_git_index.rs @@ -70,7 +70,11 @@ impl DummyGitIndex { if empty || config_written || new_symlink || new_git_symlink { let mut index = repository.index().expect("cannot get the Index file"); index - .add_all(["*"].iter(), IndexAddOption::DEFAULT, None) + .add_all( + ["config.json", "index"].iter(), + IndexAddOption::DEFAULT, + None, + ) .expect("Failed to add modified files to git index"); index.write().expect("Failed to update the git index");