Closed
Description
- Gitea version (or commit ref): 1.5.1
- Git version: 2.17.1
- Operating system: Ubuntu 18.04
- Database (use
[x]
):- PostgreSQL
- MySQL
- MSSQL
- SQLite
- Can you reproduce the bug at https://try.gitea.io:
- Yes, https://try.gitea.io/LukasFuerderer/Test
- No
- Not relevant
- Log gist:
Description
When I create a new, empty repository in the web view and push two branches at the same time using one git push
command, the repository still appears empty in the web view.
Steps to reproduce
-
Create a new repository with the web browser. Leave the checkbox "Initialize Repository" empty.
-
Clone the repository and create a commit.
lukas@laptop:~$ git clone https://try.gitea.io/LukasFuerderer/Test.git Klone nach 'Test' ... Username for 'https://try.gitea.io': LukasFuerderer Password for 'https://[email protected]': warning: Sie scheinen ein leeres Repository geklont zu haben. Prüfe Konnektivität ... Fertig. lukas@laptop:~$ cd Test lukas@laptop:~/Test$ touch dummy lukas@laptop:~/Test$ git add dummy lukas@laptop:~/Test$ git commit -m "Create dummy file" [master (Basis-Commit) 518f855] Create dummy file 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 dummy lukas@laptop:~/Test$
-
Create a second branch.
lukas@laptop:~/Test$ git branch branch2 lukas@laptop:~/Test$
-
Push both branches using only one push command.
lukas@laptop:~/Test$ git push origin master branch2 Username for 'https://try.gitea.io': LukasFuerderer Password for 'https://[email protected]': Zähle Objekte: 3, Fertig. Schreibe Objekte: 100% (3/3), 222 bytes | 0 bytes/s, Fertig. Total 3 (delta 0), reused 0 (delta 0) To https://try.gitea.io/LukasFuerderer/Test.git * [new branch] master -> master * [new branch] branch2 -> branch2 lukas@laptop:~/Test$
Both branches are now pushed to the git repository in the background. If I clone the repository to a new location, they are visible.
But the web view still shows an empty repository. I can see the "Quick Guide" giving instructions how to create the first commit.