You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have two repositories, let's call them Project which is an old repository and cuddly-invention (one of the random names github generates) which is newly created. On repository Project we have an open pull request. We then rename the repositories from Project to Project-Legacy and cuddly-invention to Project, clone the new Project repository (which again is the newly created one), close the pull request in Project-Legacy (which was the original Project repo).
This will make the Pull Requests list in the Project repository still show the closed PR from the legacy repository and a Couldn't find branch in remote error if you try to checkout to it along with a 404 and a 422 error code in console.
Release version
Version 3.1.2 (x64)
Operating system
Windows 11
Steps to reproduce the behavior
No response
Log files
No response
Screenshots
Additional context
No response
The text was updated successfully, but these errors were encountered:
Hey @Retr0-01, thanks for reaching out. This behavior is unfortunate but not unexpected given how we associate local repositories with remotes by name only which means we currently don't have a system in place for detecting the scenario you outline above. We do have the repository database id in stored locally which we could use to detect when a repository name and id no longer matches up and use that information to clean our local database. This work is nontrivial and comes with its own set of risks as we currently don't have a good reference counting system in place for our local database. I'm going to tag this as a bug for us to consider as we're making other changes to the local database going forward. Thanks!
niik
added
the
bug
Confirmed bugs or reports that are very likely to be bugs
label
Dec 13, 2022
The problem
We have two repositories, let's call them
Project
which is an old repository andcuddly-invention
(one of the random names github generates) which is newly created. On repository Project we have an open pull request. We then rename the repositories fromProject
toProject-Legacy
andcuddly-invention
toProject
, clone the new Project repository (which again is the newly created one), close the pull request in Project-Legacy (which was the original Project repo).This will make the Pull Requests list in the Project repository still show the closed PR from the legacy repository and a
Couldn't find branch in remote
error if you try to checkout to it along with a 404 and a 422 error code in console.Release version
Version 3.1.2 (x64)
Operating system
Windows 11
Steps to reproduce the behavior
No response
Log files
No response
Screenshots
Additional context
No response
The text was updated successfully, but these errors were encountered: