fix(git): fix shellexpand::tilde in git_repos in topgrade.d/* (#1223)

This commit is contained in:
Gideon
2025-11-08 11:10:24 +01:00
committed by GitHub
parent b61886f0f9
commit 34b7943fd1
3 changed files with 1 additions and 21 deletions

View File

@@ -15,7 +15,6 @@ use indexmap::IndexMap;
use merge::Merge;
use regex::Regex;
use regex_split::RegexSplit;
use rust_i18n::t;
use serde::Deserialize;
use strum::IntoEnumIterator;
use tracing::{debug, error};
@@ -659,17 +658,6 @@ impl ConfigFile {
}
}
if let Some(paths) = result.git.as_mut().and_then(|git| git.repos.as_mut()) {
for path in paths.iter_mut() {
let expanded = shellexpand::tilde::<&str>(&path.as_ref()).into_owned();
debug!(
"{}",
t!("Path {path} expanded to {expanded}", path = path, expanded = expanded)
);
*path = expanded;
}
}
debug!("Loaded configuration: {:?}", result);
Ok(result)
}