Commit Graph

5 Commits

Author SHA1 Message Date
Félix Baylac-Jacqué a768efebba [bugfix] Do not create an empty dir when git clone fails
git clone is creating a destination empty directory before even
attempting to clone the remote URL. It means that if the user-supplied
remote URL happen to be invalid, an empty directory is getting created
at dest, preventing us to try cloning the same repository once again.

We fixed that issue by checking whether the remote git repository
exists using git ls-remote **before** calling git clone.

git ls-remote will fail on a git repository not containing any git
commit. We add a function to the test bed creating a git repo with one
commit. It's a bit hacky, but that's the best setup I could come with.
We embed a dummy git repo to the my-repo-pins codebase and copy it
during the test phase to a tmp workspace.
2022-11-11 10:55:35 +01:00
Félix Baylac-Jacqué c058603766
Rename the project
Hinted by the Melpa maintainers here:
https://github.com/melpa/melpa/pull/8093

Using a single letter name was a mistake. Renaming the project to
something a bit more sensible. Maybe not too sensible that being said:
we had to adopt a pun.

Kudos to Wiwi for the pun: it's perfect.
2022-06-27 18:19:25 +02:00
Félix Baylac-Jacqué bac502397d
ci: fix ert call 2022-04-04 18:25:46 +02:00
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é ea6631f05a
Burocratic setup 2022-04-01 10:44:44 +02:00