-
-
Notifications
You must be signed in to change notification settings - Fork 139
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
packed-refs are ignored when listing remote branches #32
Comments
The same problem may occur when creating the namespaced tags. The tags within |
The easiest way to work around this is to disable gc-auto right after creating the new repository, like so:
Then at the end of the main function, re-enable gc.auto. I also recommend running a full GC to optimize the resulting monorepo.
|
This was fixed for branches but is still an issue for tags. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The function
remote-branches
has a bug which may lead to missing branches and/or subtrees in the monorepo.The file-based approach for listing all branches for a given remote does not consider packed-refs. The Git GC (garbage collector) may occasionally pack individual ref files into a single file named
.git/packed-refs
and remove them from therefs
directory. Those refs will be ignored by tomono.Further information:
For now we cannot provide any steps to reproduce, but it seems that the issue is related to the number and size of the repositories to process. In our case, we migrated ~100 single repositories with a total of ~125000 commits and ~1400 remote branches into a monorepo, when we detected that the content of a certain single repository was missing.
The text was updated successfully, but these errors were encountered: