Open jduan-highnote opened 1 year ago
I can confirm the bug. I have checked as well the source code and bug is in logic of method checkoutLocalBranch which clones repository, then it creates on top of the remote repository HEAD (usually default branch is configured develop/master/main) new local branch and then it tries to pull remote brach, which might fail if it can't be fast forwarded from locally, created branch on top of HEAD, to remote branch. Instead code should try to checkout branch locally after clone repo and if it will fail then it should create new branch...
Describe the bug First of all, I recently discovered this amazing tool and I've used it to open a bunch of PRs across a few repos. That worked amazingly!
Now I got some review feedback and I'm trying to update those PRs by using git-xargs again. Here's what I did:
The intention is that I want git-xargs to run
/tmp/2.sh
to addresses the feedback on the existing PR branch(es) and push the changes. That's the behavior of git-xargs when the branch already exists. However, git-xargs seems to ignore the existing remote branch and creates a new local branch with the same name. When it tries to push the branch to remote, it will report this error:Error="non-fast-forward update"
Why is git-xargs not making changes to the existing branch?
To Reproduce See above
Expected behavior git-xargs should make changes to the existing branch.
Nice to have
Additional context Add any other context about the problem here.