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

Commit

Permalink
Fix failure in updating GIT index of cargo registry server
Browse files Browse the repository at this point in the history
  • Loading branch information
pgarg66 committed Oct 10, 2023
1 parent 4c664a8 commit b326da1
Showing 1 changed file with 5 additions and 1 deletion.
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

0 comments on commit b326da1

Please sign in to comment.