Commit Graph

104 Commits

Author SHA1 Message Date
Félix Baylac-Jacqué b32b68f2af
h--get-code-root-projects: test more corner cases
Fix the code for the case where the h-code-root directory hasn't been
created yet.
2022-04-03 17:53:36 +02:00
Félix Baylac-Jacqué 0abe2e0956
h-tests: add basic infrastructure to create dummy code-root setup
So far, I was hoping I could check-in some dummy code-root setups
directly to the git repository as fixtures. Sadly, it's almost
impossible to check-in git repos in a git repo. The only option do to
so would be to setup git subrepo. Needless to say, I *really* don't
want to go down that path.

Instead, I created some infrastructure to create a temp directory in
which we generate the test code-roots on the fly.
2022-04-02 11:56:24 +02:00
Félix Baylac-Jacqué 02109cec18
get-code-root-projects: implement "naive" version
This function is meant to retrieve the projects repositories from the
code-root.

This first version is a bit naive in its approach: we consider a
directory to be a git repository as soon as a .git directory is present.

That might be a bit too naive.
2022-04-01 20:04:09 +02:00
Félix Baylac-Jacqué ea6631f05a
Burocratic setup 2022-04-01 10:44:44 +02:00