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

Cannot find remote ref <branchname> #38

Open
mxstbr opened this issue Nov 1, 2017 · 7 comments · May be fixed by #44
Open

Cannot find remote ref <branchname> #38

mxstbr opened this issue Nov 1, 2017 · 7 comments · May be fixed by #44

Comments

@mxstbr
Copy link

mxstbr commented Nov 1, 2017

This is happening here: styled-components/styled-components-website#158

screen shot 2017-11-01 at 1 30 09 pm

/cc @hugomd this is on your branch, maybe related?

@hugomd
Copy link
Contributor

hugomd commented Nov 1, 2017

@mxstbr I haven’t seen this before, I’ll take a look and try to replicate 👍

@morajabi
Copy link

morajabi commented Nov 1, 2017

@mxstbr Should I do something? Did I break this? btw What is this? :)

@mxstbr
Copy link
Author

mxstbr commented Nov 1, 2017

No, that's on stage-ci.

@hugomd
Copy link
Contributor

hugomd commented Nov 1, 2017

From what I can tell it's failing on this line:

log.info(`> Fetching ${ref}...`);
await git.fetch('origin', ref);

It could be an underlying git issue (unlikely), an issue with simple-git or we're grabbing the wrong ref and other git information, maybe?

I've attempted to replicate locally with this code, but I don't have any issues:

const git = require('simple-git/promise')();

(async () => {
  await git.clone('https://github.com/styled-components/styled-components-website.git', './style-comp', ['--depth=1', '--branch=add/alogliadocs']);
  await git.cwd('./styled-components');
  await git.fetch('origin', 'add/alogliadocs');
})();

@mxstbr It'd be super helpful if you could grab the payload sent to the webhook and paste it in here 🙏

@paulirish
Copy link
Contributor

just picked back up stage-ci.. its' been a while.

I can see this when a contributor forks and stage-ci is trying to checkout their branch:

await git.fetch('origin', ref);

You can see stage-ci is really only used to fetching the origin remote. Other remotes aren't a thing. :)

@paulirish paulirish linked a pull request May 11, 2018 that will close this issue
@paulirish
Copy link
Contributor

put up a fix for this in #38

@hugomd
Copy link
Contributor

hugomd commented May 13, 2018

Thanks for the PR @paulirish ! 🙏

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

Successfully merging a pull request may close this issue.

4 participants