After `gt move`, graphite errors and closes my PR...
# report-bugs
j
After
gt move
, graphite errors and closes my PR instead of updating base branch.
p
(If applicable) To help us repro, please send the following if you haven't already: - PR links, screenshots, and/or debug output if applicable - Repro steps - Does this happen consistently? Just to you or others on your team also? - Is this a regression? Is the problem new? - If you're having an issue with the CLI, please send us debug logs using
gt feedback --with-debug-context <any message>
j
Copy code
git checkout master
gt create branch-1
git commit "commit A"
gt submit (graphite opens a PR)
(other teammates merge to master)
Copy code
git checkout master
git pull (not sure if I manually synced master or did a gt sync)
gt create branch-2
git commit "commit B"
gt submit (graphite opens a PR)
I now have two PRs, that branch off of master at different points.
Copy code
gt checkout branch-1
Checked out branch-1.
This branch has fallen behind master.
Run gt restack to resolve.
I ignore this request to restack....
Copy code
gt move (move branch-1 on top of branch-2)
gt submit
Copy code
git checkout master
gt create branch-1
git commit "commit A"
gt submit (graphite opens a PR)
(other teammates merge to master)
Copy code
git checkout master
git pull (not sure if I manually synced master or did a gt sync)
gt create branch-2
git commit "commit B"
gt submit (graphite opens a PR)
I now have two PRs, that branch off of master at different points.
Copy code
gt checkout branch-1
Checked out branch-1.
This branch has fallen behind master.
Run gt restack to resolve.
I ignore this request to restack....
Copy code
gt move (move branch-1 on top of branch-2)
gt submit
I expected graphite to update base branch of branch-1. Instead graphite did the following: I get a local failure:
Copy code
ERROR: Failed to push branches: CommandFailed: Command failed with error exit code 1:
git push -u origin --force-with-lease --progress branch-1 graphite-base/61732 --no-verify

To MY_REPO.git
 ! [rejected]                graphite-base/61732 -> graphite-base/61732 (stale info)
 ! [rejected]                branch-1 -> branch-1 (stale info)
error: failed to push some refs to 'MY_REPO.git'
, cleaning up retargeted PRs: [{"prNumber":61732,"previousPrBase":"master"}]
ERROR: Failed to cleanup retargeted PRs: Error: Error response trying to cleanup retargeted PRs: 500; PRs: [{"prNumber":61732,"previousPrBase":"master"}]
ERROR: Force-with-lease push failed due to external changes to the remote branch.
If you are collaborating on this stack, try gt get to pull in changes.
Alternatively, use the --force option of gt submit to bypass the stale info warning.
and Github updates as:
Copy code
ME changed the base branch from master to graphite-base/61732

ME merged commit 15d14e5 into graphite-base/61732

ME
deleted the branch-1 branch
Happy to DM some github URLs
p
Thanks for the great context on the issue you're running into. Do you mind also sending
gt feedback
so we get all your logs for all the commands? This will help us put the pieces together. And yes, feel free to DM me Graphite URLs!