repo.py: Unshallow repo even if no branch is set
This is required for example to fix meta layer trigger pipelines, where we only set a ref for the layer and expect it will be found no matter what branch it is in. To make this work we need to fetch the full repo.