mirror of
https://github.com/go-gitea/gitea.git
synced 2026-01-12 02:22:56 +01:00
When visiting the new file & upload file pages on a repo that has no commits, the request for file-tree files fails. --- <img width="1173" height="728" alt="Screenshot_20260106_175938" src="https://github.com/user-attachments/assets/69e0ee0d-24af-4f5f-be7e-d64c03b5a5cb" /> <img width="349" height="95" alt="image" src="https://github.com/user-attachments/assets/6e0b5252-95f2-4094-8d11-e0c5262f525b" /> --------- Signed-off-by: wxiaoguang <wxiaoguang@gmail.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>