In the .gitlab-ci.yml I do this:
which works just fine.
Now I have the manifest.xml that says:
<?xml version="1.0" encoding="UTF-8" ?>
<manifest>
<default sync-j="2"/>
<project name="some-repo" remote="example" revision="some-branch" path="sources/some-repo"/>
</manifest>
When I do this in the .gitlab-ci.yml:
repo init -u $CI_REPOSITORY_URL -m manifest.xml
repo sync
I get these errors:
Invalid clone.bundle file; ignoring.
error: Cannot checkout some-repo.git: ManifestInvalidRevisionError: revision some-branch in some-repo.git not found
error: in `sync`: revision some-branch in some-repo.git not found
I guess this has something to do with missing credentials in the case of repo, because without repo it works just fine.
Also the revision some-branch not found is weird. The branch does exist.
Any help would be much appreciated!