Description
- Gitea version (or commit ref): Any
- Git version: Any
- Operating system: Windows
- Database (use
[x]
):- PostgreSQL
- MySQL
- MSSQL
- SQLite
- Can you reproduce the bug at https://try.gitea.io:
- Yes (provide example URL)
- [ x] No
- Not relevant
- Log gist:
Description
I discovered that a team to whom I had recommended Gitea had installed on Windows. The Web UI was working but they could only create empty repos, not pre-provisioned ones, and they couldn't push to the server. The log mentioned a "file not found" error when running c:\gitea\gitea.exe but they insisted it was there. After all, they had configured it to run as a Windows service, so it had to be there or the service wouldn't be running.
When I got there to take a look, I discovered that they had not turned off the Windows "hide known file extensions" feature in Windows Explorer, so when they renamed the downloaded Windows binary and renamed it to "gitea.exe", they actually named it "gitea.exe.exe". They didn't realise this because it seems the Windows Services Manager emulates the command shell behaviour, in that if it can't find command foo it looks for foo.exe. So the service was started, but since the web UI calls the gitea binary to perform git tasks, that failed (because the web app isn't calling a windows-specific function with the noob-friendly logic).
Before I went to look at their set-up, I did a little searching and it seems a significant of people trying Gitea on windows encounter this error and then - it seems - eventually fix it without realising what they did. So I suggest a warning in the documentation for windows installation.