Giter Site home page Giter Site logo

Comments (8)

sorenlouv avatar sorenlouv commented on June 1, 2024

Hi there,

What version of backport are you using? Try npx backport --version

from backport.

sorenlouv avatar sorenlouv commented on June 1, 2024

I think I found the issue. You are trying to backport a commit from the branch 23-12-11-just-backport-commit. This branch doesn't exist.

The error message is currently misleading. i'll add a fix to improve that.

Btw. I tried figuring out on which branch the commit lives, but it looks like it's an orphan:
fedimint/fedimint@516b250

from backport.

dpc avatar dpc commented on June 1, 2024

The branch existed locally in my local repo, as the commit is in a private fork, so I couldn't really point at any upstream PR number. So I started with --commit but that immediately failed, so I tried --sourceBranch my local branch name and I it looked like it is kind of working as it was doing something before it failed at what looked like trying to push, but I guess I just confused myself.

I'd really love some --verbose flag that would print Fetching branch xyz, Checkout out abc, etc. I often work in weird setups and need to bend tools in all sorts of ways and being able to understand the inner-workings is very helpful.

from backport.

sorenlouv avatar sorenlouv commented on June 1, 2024

I'd really love some --verbose flag that would print Fetching branch xyz, Checkout out abc, etc. I often work in weird setups and need to bend tools in all sorts of ways and being able to understand the inner-workings is very helpful.

There are logs in ~/.backport/backport.info.log and ~/.backport/backport.debug.log. If you have jq installed you can read them like

tail -f ~/.backport/backport.info.log | jq

from backport.

sorenlouv avatar sorenlouv commented on June 1, 2024

The branch existed locally in my local repo, as the commit is in a private fork, so I couldn't really point at any upstream PR number

The way the backport tool works, is that it clones the repository into a temporary folder, and performans the git operations there. The commit you want to backport therefore needs to be available in the upstream repository - not just locally.

from backport.

dpc avatar dpc commented on June 1, 2024

The way the backport tool works, is that it clones the repository into a temporary folder, and performans the git operations there. The commit you want to backport therefore needs to be available in the upstream repository - not just locally.

Is there any way to backport a PR/commit from a private fork to a public upstream one? Is it something that could be supported?

from backport.

sorenlouv avatar sorenlouv commented on June 1, 2024

Is there any way to backport a PR/commit from a private fork to a public upstream one? Is it something that could be supported?

I don't think so.
Does Github even support this? If you have a private fork, of a public repo, can you create a pull request on the public repo, that references a change in the private repo? If not, I don't see how this should work.

from backport.

dpc avatar dpc commented on June 1, 2024

Does Github even support this? If you have a private fork, of a public repo, can you create a pull request on the public repo, that references a change in the private repo? If not, I don't see how this should work.

I thought that backport fetches the PR, created a new branch, pushes it somewhere and creates a PR. The only difference in this workflow is that "fetches the PR" comes from some other repo than the original one, no?

from backport.

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.