GithubHelp home page GithubHelp logo

Comments (4)

amyreese avatar amyreese commented on June 12, 2024

Looks like this was because my .git/config for that repo was only set up to sync the main branch, for reasons I don't understand:

[remote "upstream"]
    url = [email protected]:Instagram/LibCST.git
    fetch = +refs/heads/main:refs/remotes/upstream/main
    gh-resolved = base

Replacing main with * on both sides of the fetch option resolved this issue. Perhaps this is something we should validate somewhere in ghstack?

from ghstack.

amyreese avatar amyreese commented on June 12, 2024

I believe this is also why I was encountering errors with this project β€”Β it had a similar git config. I think this might be the way that the gh tool clones from forked repos, with the expectation that upstream branches don't matter. Then trying to use ghstack with that git config blows up.

I'll look at adding a simple check for this config, and submit a PR to at least call it out and probably abort early.

from ghstack.

ezyang avatar ezyang commented on June 12, 2024

Aha! The best fix is to manually specify an appropriate refspec when we fetch. Do you think you know how to construct that PR?

from ghstack.

amyreese avatar amyreese commented on June 12, 2024

I'll see what I can figure out tomorrow. I'll have to pay closer attention to what's happening with the git commands. πŸ˜…

from ghstack.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.