mirror of
https://github.com/extrawurst/gitui.git
synced 2024-11-27 10:15:07 +03:00
cache config path call
This commit is contained in:
parent
93065fb12b
commit
c6eb066953
@ -215,8 +215,9 @@ fn migrate_config() -> Result<()> {
|
||||
!entry.file_name().to_string_lossy().ends_with(".log")
|
||||
});
|
||||
|
||||
let config_path: PathBuf = get_app_config_path()?;
|
||||
for entry in entries {
|
||||
let mut config_path: PathBuf = get_app_config_path()?;
|
||||
let mut config_path: PathBuf = config_path.clone();
|
||||
config_path.push(entry.file_name());
|
||||
fs::rename(entry.path(), config_path)?;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user