diff --git a/crates/server/src/config/tests.rs b/crates/server/src/config/tests.rs index f048962..d669ad2 100644 --- a/crates/server/src/config/tests.rs +++ b/crates/server/src/config/tests.rs @@ -170,7 +170,7 @@ fn repo_details_find_default_push_remote_finds_correct_remote() -> Result<()> { ServerGeneration::new(), common::forge_details(1, ForgeType::MockForge), None, - GitDir::new(&root), // Server GitDir - should be ignored + GitDir::new(root), // Server GitDir - should be ignored ); repo_details.forge.hostname = Hostname("git.kemitix.net".to_string()); repo_details.repo_path = RepoPath("kemitix/git-next".to_string()); @@ -196,7 +196,7 @@ fn gitdir_validate_should_pass_a_valid_git_repo() -> Result<()> { ServerGeneration::new(), common::forge_details(1, ForgeType::MockForge), None, - GitDir::new(&root), // Server GitDir - should be ignored + GitDir::new(root), // Server GitDir - should be ignored ); repo_details.forge.hostname = Hostname("git.kemitix.net".to_string()); repo_details.repo_path = RepoPath("kemitix/git-next".to_string()); @@ -216,7 +216,7 @@ fn gitdir_validate_should_fail_a_git_repo_with_wrong_remote() -> Result<()> { ServerGeneration::new(), common::forge_details(1, ForgeType::MockForge), None, - GitDir::new(&root), // Server GitDir - should be ignored + GitDir::new(root), // Server GitDir - should be ignored ); repo_details.forge.hostname = Hostname("localhost".to_string()); repo_details.repo_path = RepoPath("hello/world".to_string());