-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Old git cli (maybe < 2) can not do IsEmpty check correctly #19086
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
Current workaround - update migrated repos with "is_empty = true" to "is_empty = false", after that repo content is displayed properly. Any cron jobs wasn't help, Add to reindex queue wasn't help too
|
This problem is caused by a very old git client. The problem is Use 2.x won't have any problem. |
You are right, I missed it - will try to update. Thank you |
Works great. Thanky you for support and sorry for late update |
Gitea Version
1.16.3
Git Version
1.8.3.1
Operating System
CentOS Linux 7 (Core)
How are you running Gitea?
Self-hosted instance in ProxMox
configuration:
Database
PostgreSQL
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
No response
Description
Steps to reproduce
In DB i see that row with imported repository (in "repository" table) has value "is_empty = true". I think that this behavior caused by change in isempty method 913d6f3
Migration was fine on version 1.15.8, today we update our instance and this new behavior was appered
Example of old code (before commit 913d6f3)
[root@ci-gitea .git]# git rev-list --all --count --max-count=1
1
[root@ci-gitea .git]# git show-ref --head ^HEAD$
[root@ci-gitea .git]
Screenshots
No response
The text was updated successfully, but these errors were encountered: