Open
Description
Description
Steps to reproduce (can reproduce on try.gitea.io, substitute the remote url with an empty repo you have push access to)
$ git config --global submodule.recurse true
$ git clone https://github.com/flipperdevices/flipperzero-firmware.git
<snip>
$ git remote add try git@try.gitea.io:nvx/flipperzero-firmware.git
$ git push try dev
fatal: remote 'try' not configured
fatal: process for submodule 'assets/protobuf' failed
fatal: the remote end hung up unexpectedly
Gitea: Failed to execute git command
Pushing to another GitHub remote works fine. Nothing out of the ordinary appears in the logs, no errors/etc.
Unsetting the submodule.recurse option allows the repo to be pushed as expected.
My server shows "Gitea: Internal error" instead of "Gitea: Failed to execute git command" though. Not sure if this is a Gitea version or Git version difference (I'm on gitea/gitea:1.19.3 docker image with whatever version of Git/etc is bundled in that image).
Gitea Version
1.19.3, but also on try which is 1.20.0+rc0-20-gfeb38da25
Can you reproduce the bug on the Gitea demo site?
Yes
Log Gist
No response
Screenshots
No response
Git Version
No response
Operating System
No response
How are you running Gitea?
My server is Docker, but reproducible on the demo site too
Database
PostgreSQL