mirror of https://github.com/go-gitea/gitea.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
4fb2006ca1
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> |
2 years ago | |
---|---|---|
.. | ||
attachment.go | 2 years ago | |
cache.go | 2 years ago | |
cors.go | 2 years ago | |
cron.go | 2 years ago | |
cron_test.go | 2 years ago | |
database.go | 2 years ago | |
database_sqlite.go | 2 years ago | |
database_test.go | 2 years ago | |
directory.go | 2 years ago | |
federation.go | 2 years ago | |
git.go | 2 years ago | |
i18n.go | 2 years ago | |
indexer.go | 2 years ago | |
indexer_test.go | 2 years ago | |
lfs.go | 2 years ago | |
log.go | 2 years ago | |
mailer.go | 2 years ago | |
markup.go | 2 years ago | |
migrations.go | 2 years ago | |
mime_type_map.go | 2 years ago | |
mirror.go | 2 years ago | |
oauth2_client.go | 2 years ago | |
packages.go | 2 years ago | |
packages_test.go | 2 years ago | |
picture.go | 2 years ago | |
project.go | 2 years ago | |
proxy.go | 2 years ago | |
queue.go | 2 years ago | |
repository.go | 2 years ago | |
service.go | 2 years ago | |
session.go | 2 years ago | |
setting.go | 2 years ago | |
setting_test.go | 2 years ago | |
storage.go | 2 years ago | |
storage_test.go | 2 years ago | |
task.go | 2 years ago | |
webhook.go | 2 years ago |