Closed dennisvang closed 5 months ago
For example, in the repo_workflow_example, if keys exist, but the metadata have been removed (for whatever reason), then Repository.initialize() will try to create new metadata, but fails to find the private keys.
Repository.initialize()
The reason is twofold:
self.keys_dir
Keys.find_private_key()
extra_key_dirs
Description (and how to reproduce)
For example, in the repo_workflow_example, if keys exist, but the metadata have been removed (for whatever reason), then
Repository.initialize()
will try to create new metadata, but fails to find the private keys.The reason is twofold:
Repository.initialize()
only looks inself.keys_dir
Keys.find_private_key()
is not recursive (which would fix this specific case)Proposed solution
extra_key_dirs
arg toRepository.initialize()
Keys.find_private_key()
recursive