Skip to content

Commit

Permalink
Fix failure in updating GIT index of cargo registry server (solana-la…
Browse files Browse the repository at this point in the history
  • Loading branch information
pgarg66 authored Oct 10, 2023
1 parent 509d6ac commit ad949b2
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 ad949b2

Please sign in to comment.