From 36752606a6eb1d3c668ec2c84ac9ce0d1c78501f Mon Sep 17 00:00:00 2001 From: mace Date: Thu, 17 Sep 2026 11:33:49 +0200 Subject: [PATCH] stop git-checkout from reverting connections.env on down toggle_index ran git checkout on connections.env whenever going down, discarding whatever set_local_db had just written and restoring whatever format happens to be committed. This silently undid the RCC_/legacy dual-format toggle. update-index still marks the file assume-unchanged/no-assume-unchanged; the checkout is gone. --- src/git/command.rs | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/git/command.rs b/src/git/command.rs index bb80487..111c9b4 100644 --- a/src/git/command.rs +++ b/src/git/command.rs @@ -20,12 +20,5 @@ pub fn toggle_index(start: bool, config: &DevToolsConf) -> Result<()> { .args(["update-index", change, &project_path]) .status()?; - if !start { - Command::new("git") - .current_dir(config.project_dir_as_string()) - .args(["checkout", &project_path]) - .status()?; - } - Ok(()) }