Update repo's default branch when adding new files in an empty one (#25017)

Fix #25014

Only API needs this fix. On the Web UI, users could only add new file on
the default branch.
This commit is contained in:
wxiaoguang
2023-05-31 17:07:51 +08:00
committed by GitHub
parent a5acec329e
commit a90988d63f
3 changed files with 15 additions and 8 deletions

1
.gitignore vendored
View File

@@ -47,6 +47,7 @@ cpu.out
*.db
*.log
*.log.*.gz
/gitea
/gitea-vet