Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: src refspec 'refs/gei/pull-requests/2/merge-clean' does not match any existing object #1190

Open
rpradotempo opened this issue Dec 13, 2023 · 4 comments
Labels
bug Something isn't working

Comments

@rpradotempo
Copy link

rpradotempo commented Dec 13, 2023

We are trying to migrate one repository from bitbucket to github using the following command:

gh bbs2gh migrate-repo --bbs-server-url https://git.ourcompany.com  \
    --bbs-project ${repoProj} --bbs-repo ${bitbucketRepoName} --github-org our-company --github-repo ${githubRepoName} \
    --ssh-user renatoprado --ssh-port 2222 \
    --ssh-private-key ~/.ssh/id_ed25519_company \
    --aws-bucket-name migration-to-github \
    --bbs-shared-home /home/appbox/data/git.ourcompany.com/shared \
    --archive-download-host 10.20.8.110 --target-repo-visibility internal

And we got the following error:

[2023-12-13T18:50:57Z] INFO -- Migration started by renato-prado from https://git.ourcompany.com/projects/H4j/repos/structure/browse to our-company/structure
[2023-12-13T18:50:57Z] INFO -- Migration ID: 616c0454-3aab-452c-ac54-e81c013e3b77
[2023-12-13T18:50:57Z] INFO -- -----------------------------
[2023-12-13T18:50:59Z] INFO -- Git source migration started
[2023-12-13T18:51:43Z] WARN -- Stash ref inspection for files over 100 MB skipped: 20,546 refs is over the 20,000 refs limit for scan. If any of your stash refs contain files over 100 MB, this will cause your migration to fail.
[2023-12-13T19:09:04Z] ERROR -- Git source migration failed. Error message: src refspec 'refs/gei/pull-requests/2/merge-clean' does not match any existing object
[2023-12-13T19:09:04Z] INFO -- Git source migration failed
[2023-12-13T19:09:04Z] INFO -- -----------------------------
[2023-12-13T19:09:04Z] INFO -- Migration failed
[2023-12-13T19:09:04Z] INFO -- -----------------------------

The repository that we are migrating has:

  • 7476 Pull requests
  • 145 branches
  • 44844 commits

Initially I thought that the error was associated with the size of the repository so I made a fork that didn't had the PRs, deleted some branches and was able to migrate the fork.

So we did the same with the original repository, we deleted some branches, tried to migrate but got the same error, so I think it might be related to the amount of the Pull requests but Frankly the error doesn't say much to me.

@rpradotempo rpradotempo added the bug Something isn't working label Dec 13, 2023
@timrogers
Copy link
Contributor

@renato-prado Sorry for the delay in getting back to you! Could you please create a GitHub Support ticket so we can look into this for you? The error definitely looks strange!

@prkstaff
Copy link

Will do it

@rpradotempo
Copy link
Author

@timrogers I opened the support ticket of number #2489498

@blmbyd
Copy link

blmbyd commented May 17, 2024

Hi
I have this same issue - for declined PRs, we just removed them.
But for the merged, this is not possible.
@rpradotempo @prkstaff @timrogers, can You share the solution? Please.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants