Jason Atwood
03/24/2025, 5:14 PMgt move, graphite errors and closes my PR instead of updating base branch.Pylon
03/24/2025, 5:14 PMgt feedback --with-debug-context <any message>Jason Atwood
03/24/2025, 5:14 PMgit checkout master
gt create branch-1
git commit "commit A"
gt submit (graphite opens a PR)
(other teammates merge to master)
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.
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....
gt move (move branch-1 on top of branch-2)
gt submit
git checkout master
gt create branch-1
git commit "commit A"
gt submit (graphite opens a PR)
(other teammates merge to master)
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.
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....
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:
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:
ME changed the base branch from master to graphite-base/61732
ME merged commit 15d14e5 into graphite-base/61732
ME
deleted the branch-1 branchJason Atwood
03/24/2025, 5:18 PMPylon
03/25/2025, 1:01 AMgt 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!