From b326da1f1c3e78341fd941a4d61721c52a68a6a8 Mon Sep 17 00:00:00 2001 From: Pankaj Garg Date: Tue, 10 Oct 2023 09:42:09 -0700 Subject: [PATCH] Fix failure in updating GIT index of cargo registry server --- cargo-registry/src/dummy_git_index.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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");