-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Mirror of an uninitialized repository #9630
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
Comments
This issue has been automatically marked as stale because it has not had recent activity. I am here to help clear issues left open even if solved or waiting for more insight. This issue will be closed if no further activity occurs during the next 2 weeks. If the issue is still valid just add a comment to keep it alive. Thank you for your contributions. |
Hello, everybody, I opened this issue two months ago, but have received no response to date. I realize that there is no point in cloning/mirroring an uninitialized repository, but even if you create a repository with no content, the URL already exists and therefore a mirror/clone is possible. Why does the mirror/clone not update the data when it is initialized later. |
This issue has been automatically marked as stale because it has not had recent activity. I am here to help clear issues left open even if solved or waiting for more insight. This issue will be closed if no further activity occurs during the next 2 weeks. If the issue is still valid just add a comment to keep it alive. Thank you for your contributions. |
It seems it's no meaning to do that. |
This issue has been automatically marked as stale because it has not had recent activity. I am here to help clear issues left open even if solved or waiting for more insight. This issue will be closed if no further activity occurs during the next 2 weeks. If the issue is still valid just add a comment to keep it alive. Thank you for your contributions. |
This issue has been automatically closed because of inactivity. You can re-open it if needed. |
@lunny do you have any update on this ? |
Fix go-gitea#9630 Fix go-gitea#13183 Signed-off-by: Andrew Thornton <[email protected]>
Fix #9630 Fix #13183 Signed-off-by: Andrew Thornton <[email protected]> Co-authored-by: Lunny Xiao <[email protected]>
[x]
):Description
If I create an uninitialized repository as remote, make a mirror of this remote using “New Migration” and “This repository will be a mirror”, the mirror never updates correctly, when I initialize and add some files to remote to a later time.
I found out that Gitea does not update the entries in the SQLite database when migrating (mirroring) an uninitialized repository and then initializing the remote repository and synchronize this repository from mirror. In the table main.repository the “default_branch” must be set to “master” and the field “is_empty” to “0” manually.
The text was updated successfully, but these errors were encountered: