Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

Fix failure in updating GIT index of cargo registry server #33628

Merged
merged 1 commit into from
Oct 10, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion cargo-registry/src/dummy_git_index.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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");

Expand Down