From 5c17d30d0dfc63e37fc93d97edf2bc6daaeeaf5b Mon Sep 17 00:00:00 2001 From: Jake Shadle Date: Thu, 25 Jul 2024 14:42:40 +0200 Subject: [PATCH] Fixup gix update --- src/index/git_remote.rs | 4 ++-- tests/git.rs | 12 +++++------- 2 files changed, 7 insertions(+), 9 deletions(-) diff --git a/src/index/git_remote.rs b/src/index/git_remote.rs index b21ce67..15478ae 100644 --- a/src/index/git_remote.rs +++ b/src/index/git_remote.rs @@ -352,12 +352,12 @@ impl RemoteGitIndex { let mut config = self.repo.config_snapshot_mut(); config - .set_raw_value("committer", None, "name", "tame-index") + .set_raw_value(&"committer.name", "tame-index") .map_err(GitError::from)?; // Note we _have_ to set the email as well, but luckily gix does not actually // validate if it's a proper email or not :) config - .set_raw_value("committer", None, "email", "") + .set_raw_value(&"committer.email", "") .map_err(GitError::from)?; let repo = config diff --git a/tests/git.rs b/tests/git.rs index 87bb75b..0a5fe0e 100644 --- a/tests/git.rs +++ b/tests/git.rs @@ -193,22 +193,20 @@ impl FakeRemote { fn snapshot(repo: &mut gix::Repository) -> gix::config::CommitAutoRollback<'_> { let mut config = repo.config_snapshot_mut(); config - .set_raw_value("author", None, "name", "Integration Test") + .set_raw_value(&"author.name", "Integration Test") .unwrap(); config - .set_raw_value("committer", None, "name", "Integration Test") + .set_raw_value(&"committer.name", "Integration Test") .unwrap(); config - .set_raw_value("author", None, "email", "tests@integration.se") + .set_raw_value(&"author.email", "tests@integration.se") .unwrap(); config - .set_raw_value("committer", None, "email", "tests@integration.se") + .set_raw_value(&"committer.email", "tests@integration.se") .unwrap(); // Disable GPG signing, it breaks testing if the user has it enabled - config - .set_raw_value("commit", None, "gpgsign", "false") - .unwrap(); + config.set_raw_value(&"commit.gpgsign", "false").unwrap(); config.commit_auto_rollback().unwrap() }