Skip to content

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

Closed
2 of 7 tasks
andreasfranke opened this issue Jan 7, 2020 · 7 comments · Fixed by #13185
Closed
2 of 7 tasks

Mirror of an uninitialized repository #9630

andreasfranke opened this issue Jan 7, 2020 · 7 comments · Fixed by #13185

Comments

@andreasfranke
Copy link

andreasfranke commented Jan 7, 2020

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.

@stale
Copy link

stale bot commented Mar 8, 2020

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.

@stale stale bot added the issue/stale label Mar 8, 2020
@andreasfranke
Copy link
Author

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.

@stale stale bot removed the issue/stale label Mar 9, 2020
@stale
Copy link

stale bot commented May 8, 2020

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.

@stale stale bot added the issue/stale label May 8, 2020
@lunny
Copy link
Member

lunny commented May 8, 2020

It seems it's no meaning to do that.

@stale stale bot removed the issue/stale label May 8, 2020
@stale
Copy link

stale bot commented Jul 11, 2020

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.

@stale stale bot added the issue/stale label Jul 11, 2020
@stale
Copy link

stale bot commented Jul 25, 2020

This issue has been automatically closed because of inactivity. You can re-open it if needed.

@stale stale bot closed this as completed Jul 25, 2020
@varunsridharan
Copy link

@lunny do you have any update on this ?
https://discourse.gitea.io/t/mirror-of-an-empty-repository/1734/9 Forum Topic got no proper replies.!! it would be great if this get solved sooner.

zeripath added a commit to zeripath/gitea that referenced this issue Oct 17, 2020
lunny added a commit that referenced this issue Oct 25, 2020
Fix #9630
Fix #13183

Signed-off-by: Andrew Thornton <[email protected]>

Co-authored-by: Lunny Xiao <[email protected]>
@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants