fix: shellexpand git.pull_only_repos & git.push_only_repos (#576)
This commit is contained in:
@@ -697,6 +697,22 @@ impl ConfigFile {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if let Some(paths) = result.git.as_mut().and_then(|git| git.pull_only_repos.as_mut()) {
|
||||||
|
for path in paths.iter_mut() {
|
||||||
|
let expanded = shellexpand::tilde::<&str>(&path.as_ref()).into_owned();
|
||||||
|
debug!("Path {} expanded to {}", path, expanded);
|
||||||
|
*path = expanded;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if let Some(paths) = result.git.as_mut().and_then(|git| git.push_only_repos.as_mut()) {
|
||||||
|
for path in paths.iter_mut() {
|
||||||
|
let expanded = shellexpand::tilde::<&str>(&path.as_ref()).into_owned();
|
||||||
|
debug!("Path {} expanded to {}", path, expanded);
|
||||||
|
*path = expanded;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
debug!("Loaded configuration: {:?}", result);
|
debug!("Loaded configuration: {:?}", result);
|
||||||
|
|
||||||
Ok(result)
|
Ok(result)
|
||||||
|
|||||||
Reference in New Issue
Block a user