feat: implement path normalization across commands

This commit is contained in:
Bohdan Triapitsyn
2025-12-25 01:25:52 +02:00
parent 359cfd45b1
commit b806b01c29
9 changed files with 205 additions and 64 deletions
@@ -1,4 +1,5 @@
use crate::{DesktopRuntime, SettingsStore};
use crate::path_utils::expand_tilde_path;
use anyhow::{anyhow, Context, Result};
use log::{error, info, warn};
use regex::Regex;
@@ -357,7 +358,7 @@ fn append_git_option_map(args: &mut Vec<String>, map: &serde_json::Map<String, V
// Removed unused resolve_workspace_root function
async fn validate_git_path(path: &str, _settings: &SettingsStore) -> Result<PathBuf> {
let path_buf = PathBuf::from(path);
let path_buf = expand_tilde_path(path);
if !path_buf.exists() {
return Err(anyhow!("Directory does not exist: {}", path));
}