Git "fetch --tags" fails on 20.04 Stack

#1

After switching from 16.04 Ubuntu Stack to the new 20.04 one, we get the following error when calling git fetch --tags:

fatal: remote error: upload-pack: not our ref ccb1f96eedeca63cc4c6f6172edb4b1708da71ca

I was able to workaround this by using git fetch --tags --no-recurse-submodules.

I guess thats because of the git bump from version 2.7.4 to 2.25.1 and no issue on the bitrise configuration side?

Maybe someone with more git experience can verify that.

0 Likes

#2

Hey @t.wirth,

We’ve made a lot of improvements to the git clone step in the past few weeks. This specific bug was fixed in version 4.2.1, and in 5.0.0 you can actually disable fetching tags to speed up your builds (if your workflow doesn’t need git tags).

0 Likes

#3

Thanks for bringing it up. Actually we already switched to step version 5.0. This allowed us to remove a custom git fetch script.

Thanks for the bugfixes and enhancements!

0 Likes