go-gitea / gitea

Git with a cup of tea! Painless self-hosted all-in-one software development service, including Git hosting, code review, team collaboration, package registry and CI/CD
https://gitea.com
MIT License
44.67k stars 5.46k forks source link

Windows new repo 500 #3541

Closed ppyyll7788 closed 6 years ago

ppyyll7788 commented 6 years ago

Description

First new repo, mark "Initialize this repository with selected files and template". Click create,see 500 err. Log: 2018/02/19 19:42:40 [I] Log Mode: File(Info) 2018/02/19 19:42:40 [I] XORM Log Mode: File(Info) 2018/02/19 19:42:40 [I] Cache Service Enabled 2018/02/19 19:42:40 [I] Session Service Enabled 2018/02/19 19:42:41 [I] Git Version: 2.15.1 2018/02/19 19:42:41 [I] SQLite3 Supported 2018/02/19 19:42:41 [I] Run Mode: Production 2018/02/19 19:42:41 [I] First-time run install finished! 2018/02/19 19:43:10 [...routers/repo/repo.go:146 handleCreateError()] [E] CreatePost: initRepository: prepareRepoCommit: git clone: exec(4:initRepository(git clone): D:\gitserver\pyle\t.git) failed: exit status 128() stdout: stderr: Cloning into 'C:\Users\ADMINI~1\AppData\Local\Temp\3\gitea-t-542145100'... error: cannot spawn sh: No such file or directory fatal: unable to fork

Screenshots

ppyyll7788 commented 6 years ago

Thank lunny.xiao in QQ group 328432459. His solution is add "LOCAL_ROOT_URL=http://127.0.0.1:3000" in custom/app.ini under "server".