-
Notifications
You must be signed in to change notification settings - Fork 170
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Previously the top repo path was resolved when creating the config. This has proven to be problematic as at this point in time neither the home nor the git / mercurial environment is set up. This makes it impossible to configure e.g. the git safe.dir in the dynamically generated .gitconfig file, as this is created after the Config instantiation but before the init_setup_repos. We now change this by adding support to lazily resolve the top repo path. In the IncludeHandler, we remove the top_repo_path arg and resolve this path on the first access instead (i.e. on the first invocation of get_top_repo_path). By that, we can further move the config file validation part (all configs are from the same repo) to the IncludeHandler. Signed-off-by: Felix Moessbauer <[email protected]> Signed-off-by: Jan Kiszka <[email protected]>
- Loading branch information
1 parent
04d1e0d
commit 5c24e6b
Showing
3 changed files
with
31 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters