forked from siemens/kas
-
Notifications
You must be signed in to change notification settings - Fork 0
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 case the IncludeHandler is created with top_repo_path=None, this path is resolved on the first access (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]>
- Loading branch information
1 parent
daf8393
commit 2c29ec6
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