Hi! I have just renamed repository in GH, and have...
# report-bugs
f
Hi! I have just renamed repository in GH, and have problems with gt cli. Everything works ok GH, also looks good on on Graphite web UI. But I have problems with CLI for pre-existing PRs. I am getting errors like:
Copy code
Branch my-repo is up to date with remote, but the current remote version was not pushed with Graphite.
ERROR: Could not find branch graphite-base/<number>.
or for fresh clone after init:
Copy code
$ gt get "my-repo" # command copied from Graphite web UI
Couldn't sync my-repo as the current remote version was not pushed with Graphite.
Could not find an open PR for branch my-repo based on any of your trunk branches.
but I can see the the PR with this branch in Graphite web UI.
gt config
looks ok. I haven't found anything on: https://graphite.dev/docs nor slack. Can you advise what to do or point me to docs?
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>
m
I had same problem. I resorted to merging legacy branches + creating new ones with graphite
🙏 1
p
hey Fryderyk, seems like the rename may have broken `gt`'s metadata for the existing PRs. One option is to run
gt init --reset
which deletes all Graphite metadata from your repository. But then all branches will need to be re-tracked.
👍 1
f
I ended up doing similar thing but in more steps: • git commit all changes • fresh clone in new directory • And then follow https://graphite.dev/docs/track-branches#track-branches-created-outside-of-gt • git checkout -> git rebase -> gt track