From f82459ab1b85aeaa8bcd50f94dd4793968926589 Mon Sep 17 00:00:00 2001 From: Martin von Zweigbergk Date: Sun, 21 Nov 2021 14:08:11 -0800 Subject: [PATCH] test: remove a trivial use of Repo::working_copy_path() --- lib/tests/test_index.rs | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lib/tests/test_index.rs b/lib/tests/test_index.rs index 2ee93a58c..eff91b9d4 100644 --- a/lib/tests/test_index.rs +++ b/lib/tests/test_index.rs @@ -257,11 +257,7 @@ fn test_index_commits_previous_operations(use_git: bool) { let repo = tx.commit(); // Delete index from disk - let index_operations_dir = repo - .working_copy_path() - .join(".jj") - .join("index") - .join("operations"); + let index_operations_dir = repo.repo_path().join("index").join("operations"); assert!(index_operations_dir.is_dir()); std::fs::remove_dir_all(&index_operations_dir).unwrap(); std::fs::create_dir(&index_operations_dir).unwrap();