my-repo-pins/tests/fixtures
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
..
dummy-git-repo [bugfix] Do not create an empty dir when git clone fails 2022-11-11 10:55:35 +01:00
gitea-get-request-ko.txt forges: introduce Gitea support 2022-06-16 18:59:45 +02:00
gitea-get-request-ok.txt Rename the project 2022-06-27 18:19:25 +02:00
github-get-request-ko.txt Github fetcher: parse actual request, handle errors 2022-04-08 16:31:19 +02:00
github-get-request-ok.txt Rename the project 2022-06-27 18:19:25 +02:00