Closed
Description
- Gitea version (or commit ref): 1.9.4 built with GNU Make 4.1, go1.12.10 : bindata, sqlite, sqlite_unlock_notif
- Git version: 2.20.1
- Operating system: Debian Buster
- Database (use
[x]
):- PostgreSQL
- MySQL
- MSSQL
- SQLite
- Can you reproduce the bug at https://try.gitea.io:
- Yes (provide example URL)
- No because there are no local repositories and apparently this does not occurr when migration a url based repository
- Not relevant
- Log gist:
Description
How to reproduce: (ssh on server running gitea)
- mkdir test.git
- cd test.git
- git --bare init
- cd ..
- git clone test.git/
- cd test
- echo 'dummy text' > README.md
- git add README.md
- git commit -m "dummy"
// Make sure we do not have a master branch but stil a not empty repo - git push origin master:not_master
- test/ is no more needed
// Remember the path of test.git - cd test.git && pwd
- make sure test.git is readable by the gitea instance
- open gitea website with an arbitrary user and migrate the local repository with the remembered path
==> After importing the repository is shown as if just newly created without any content
Expected: show branch not_master with content
The migration itself seems to work: if you clone this repository afterwards the branch not_master exists with the correct content
After a new push this issue gets resolved and the repository is visualized correctly.
This does not occurr with local repositories having a master branch with content.
Restarting the gitea service does not help.
Logging out and in again neither.
Metadata
Metadata
Assignees
Labels
No labels