Commit 919a66d
committed
Do not fail in GetCommitsInfo with no .gitmodules
This fixes GetCommitsInfo returning
GetSubModule (/somemodule): object does not exist [id: , rel_path: .gitmodules]
when /somemodule is a ref entry but no .gitmodules file is present. Instead
failing we just check for IsErrNotExist and return empty submodule url.
This also fixes HTTP 500 internal error in Gogs for case described above.1 parent d78e7ee commit 919a66d
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
144 | 144 | | |
145 | 145 | | |
146 | 146 | | |
147 | | - | |
| 147 | + | |
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
| |||
0 commit comments