Commit 2148b27
authored
Prevent NPE on empty commit (go-gitea#16812) (go-gitea#16819)
Backport go-gitea#16812
Handle completely empty commit as the first commit to a repository.
Fix go-gitea#16668
Signed-off-by: Andrew Thornton [email protected]1 parent ab7e36e commit 2148b27
1 file changed
+3
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
167 | 167 | | |
168 | 168 | | |
169 | 169 | | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
170 | 173 | | |
171 | 174 | | |
172 | 175 | | |
| |||
0 commit comments