Fix multiple issues with global config

- global config saved outside the app errored and had no effect on config
- global config saved in app, saved invalid state and invalid file
- removed outdated global error handling on alter-file
- Also fix validations for repo config
This commit is contained in:
Gabriel Horner
2023-03-22 23:40:08 -04:00
committed by Andelf
parent 07c27b0f59
commit 89ba13d5ac
5 changed files with 44 additions and 54 deletions

View File

@@ -81,7 +81,7 @@
[path format] (:rum/args state)
repo-dir (config/get-repo-dir (state/get-current-repo))
[dir path] (cond
(string/starts-with? path (global-config-handler/global-config-dir))
(string/starts-with? path (str (global-config-handler/safe-global-config-dir)))
[nil path]
;; in-repo file, absolute path