From 7deba1172c648ca876bf5a9c968c773aca14fc82 Mon Sep 17 00:00:00 2001 From: Martin von Zweigbergk Date: Wed, 11 Aug 2021 16:01:59 -0700 Subject: [PATCH] tests: remove an unnecessary `wc.commit()` right after `wc.check_out()` --- lib/tests/test_working_copy.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/tests/test_working_copy.rs b/lib/tests/test_working_copy.rs index bf392d644..f2b7c7dee 100644 --- a/lib/tests/test_working_copy.rs +++ b/lib/tests/test_working_copy.rs @@ -176,7 +176,6 @@ fn test_checkout_file_transitions(use_git: bool) { let owned_wc = repo.working_copy().clone(); let wc = owned_wc.lock().unwrap(); wc.check_out(left_commit).unwrap(); - repo = wc.commit(&settings, repo).0; wc.check_out(right_commit.clone()).unwrap(); // Check that the working copy is clean.