Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Git error getting resource #4

Open
rorsten opened this issue Aug 10, 2020 · 1 comment
Open

Git error getting resource #4

rorsten opened this issue Aug 10, 2020 · 1 comment

Comments

@rorsten
Copy link

rorsten commented Aug 10, 2020

git fetch origin "$ref" $depthflag

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?

@JohannesRudolph
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants