Commit 53eb72c
committed
Prevent panic on looking at api "git" endpoints for empty repos (go-gitea#22457)
Backport go-gitea#22457
The API endpoints for "git" can panic if they are called on an empty
repo. We can simply allow empty repos for these endpoints without worry
as they should just work.
Fix go-gitea#22452
Signed-off-by: Andrew Thornton <[email protected]>1 parent 10c9f96 commit 53eb72c
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1042 | 1042 | | |
1043 | 1043 | | |
1044 | 1044 | | |
1045 | | - | |
| 1045 | + | |
1046 | 1046 | | |
1047 | 1047 | | |
1048 | 1048 | | |
| |||
0 commit comments