mirror of
https://github.com/gitui-org/gitui
synced 2026-05-24 01:18:21 +00:00
cache config path call
This commit is contained in:
parent
93065fb12b
commit
c6eb066953
1 changed files with 2 additions and 1 deletions
|
|
@ -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 a new issue