Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make gitea work using cmd.exe again (go-gitea#22073)
Backport go-gitea#22073 Gitea will attempt to lookup its location using LookPath however, this fails on cmd.exe if gitea is in the current working directory. exec.LookPath will return an exec.ErrDot error which we can test for and then simply using filepath.Abs(os.Args[0]) to absolute gitea against the current working directory. Fix go-gitea#22063 Signed-off-by: Andrew Thornton <art27@cantab.net>
- Loading branch information