Git error getting resource
https://github.com/meshcloud/gate-resource/blob/92f56fa40c90d3da9b795c8887b40061519454e5/assets/git-in#L58
Seems to be causing failures when I get gates:
Identity added: /tmp/git-resource-private-key (/tmp/git-resource-private-key)
Initialized empty Git repository in /tmp/build/get/.git
error: Server does not allow request for unadvertised object [sha from version.ref]
I notice that the official git resource uses a different command:
git clone --single-branch $depthflag $uri $branchflag $destination $tagflag
Is it possible to switch that line out?
I think merely switching the line is not easily possible, i.e. gate-resource uses a simplified in script without support for $branchflag etc.
The error you're getting appears to be related to the git server you use, maybe it won't support directly fetching a ref? We use gate-resource with GitHub without problems, but I know that e.g. BitBucket Cloud uses a git version that's too old to support this.