0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-11-05 21:59:20 +01:00
gitea/modules/setting
zeripath 4fb2006ca1
Make gitea work using cmd.exe again (#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 #22063

Signed-off-by: Andrew Thornton <art27@cantab.net>

Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
2022-12-14 01:15:11 -05:00
..
attachment.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
cache.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
cors.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
cron.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
cron_test.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
database.go Support disabling database auto migration (#22053) 2022-12-07 09:58:31 -06:00
database_sqlite.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
database_test.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
directory.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
federation.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
git.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
i18n.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
indexer.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
indexer_test.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
lfs.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
log.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
mailer.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
markup.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
migrations.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
mime_type_map.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
mirror.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
oauth2_client.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
packages.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
packages_test.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
picture.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
project.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
proxy.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
queue.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
repository.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
service.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
session.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
setting.go Make gitea work using cmd.exe again (#22073) 2022-12-14 01:15:11 -05:00
setting_test.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
storage.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
storage_test.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
task.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
webhook.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00