You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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://LukasFuerderer@try.gitea.io':
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$
Update: There seems to be another condition that I did not recognize before.
To reproduce this bug, every branch that is part of the first push must point to the same commit. In the scenario I described above, I have two branches on the same commit so the condition is fulfilled.
[x]
):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.
Create a second branch.
Push both branches using only one push command.
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.
Screenshots
Creating the repository:

After pushing both branches:

The text was updated successfully, but these errors were encountered: