loader.git: Improve GitLoaderFromArchive
While working on improving swh-web tests, I noticed a couple of issues with GitLoaderFromArchive. That diff implements the following:
-
guess project name from archive name instead of path
-
add support for tar.gz tarballs
-
handle more tarball layouts
-
simplify test
Migrated from D799 (view on Phabricator)