1
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-10-03 03:56:18 -04:00
gitea/models
wxiaoguang 496b8e3990
Use git.HOME_PATH for Git HOME directory (#20114)
* Add git.HOME_PATH

* add legacy file check

* Apply suggestions from code review

Co-authored-by: zeripath <art27@cantab.net>

* pass env GNUPGHOME to git command, move the existing .gitconfig to new home, make the fix for 1.17rc more clear.

* set git.HOME_PATH for docker images to default HOME

* Revert "set git.HOME_PATH for docker images to default HOME"

This reverts commit f120101ddc.

* force Gitea to use a stable GNUPGHOME directory

* extra check to ensure only process dir or symlink for legacy files

* refactor variable name

* The legacy dir check (for 1.17-rc1) could be removed with 1.18 release, since users should have upgraded from 1.17-rc to 1.17-stable

* Update modules/git/git.go

Co-authored-by: Steven Kriegler <61625851+justusbunsi@users.noreply.github.com>

* remove initFixGitHome117rc

* Update git.go

* Update docs/content/doc/advanced/config-cheat-sheet.en-us.md

Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: Steven Kriegler <61625851+justusbunsi@users.noreply.github.com>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
2022-07-08 16:09:07 +08:00
..
admin Add more linters to improve code readability (#19989) 2022-06-20 12:02:49 +02:00
appstate
asymkey Add more linters to improve code readability (#19989) 2022-06-20 12:02:49 +02:00
auth Add more linters to improve code readability (#19989) 2022-06-20 12:02:49 +02:00
avatars
db Allow manager logging to set SQL (#20064) 2022-06-24 12:49:47 +02:00
fixtures Exclude Archived repos from Dashboard Milestones (#19882) 2022-06-04 19:30:01 +01:00
foreignreference
git Add more linters to improve code readability (#19989) 2022-06-20 12:02:49 +02:00
issues Modify milestone search keywords to be case insensitive (#20266) 2022-07-06 22:05:12 +01:00
migrations Refix indices on actions table (#20158) 2022-07-01 17:04:01 +01:00
organization Adjust transaction handling via db.Context (#20031) 2022-06-20 14:38:58 +02:00
packages Add more linters to improve code readability (#19989) 2022-06-20 12:02:49 +02:00
perm Add more linters to improve code readability (#19989) 2022-06-20 12:02:49 +02:00
project Add more linters to improve code readability (#19989) 2022-06-20 12:02:49 +02:00
pull
repo Adjust transaction handling via db.Context (#20031) 2022-06-20 14:38:58 +02:00
unit Add more linters to improve code readability (#19989) 2022-06-20 12:02:49 +02:00
unittest Use git.HOME_PATH for Git HOME directory (#20114) 2022-07-08 16:09:07 +08:00
user Only show Followers that current user can access (#20220) 2022-07-05 16:47:45 +01:00
webhook Add more linters to improve code readability (#19989) 2022-06-20 12:02:49 +02:00
action_list.go
action_test.go Move issues related files into models/issues (#19931) 2022-06-13 17:37:59 +08:00
action.go Refix indices on actions table (#20158) 2022-07-01 17:04:01 +01:00
consistency.go Move issues related files into models/issues (#19931) 2022-06-13 17:37:59 +08:00
error.go Move issues related files into models/issues (#19931) 2022-06-13 17:37:59 +08:00
fixture_generation.go
fixture_test.go
main_test.go Move issues related files into models/issues (#19931) 2022-06-13 17:37:59 +08:00
migrate_test.go Move issues related files into models/issues (#19931) 2022-06-13 17:37:59 +08:00
migrate.go Move issues related files into models/issues (#19931) 2022-06-13 17:37:59 +08:00
notification_test.go Move issues related files into models/issues (#19931) 2022-06-13 17:37:59 +08:00
notification.go Add more linters to improve code readability (#19989) 2022-06-20 12:02:49 +02:00
org_team_test.go
org_team.go Move issues related files into models/issues (#19931) 2022-06-13 17:37:59 +08:00
org_test.go Move tests as seperate sub packages to reduce duplicated file names (#19951) 2022-06-15 09:02:00 +02:00
org.go Use neutral language in comments and docs (#20135) 2022-06-25 17:50:12 -05:00
release.go Add more linters to improve code readability (#19989) 2022-06-20 12:02:49 +02:00
repo_activity.go Move issues related files into models/issues (#19931) 2022-06-13 17:37:59 +08:00
repo_collaboration_test.go Move tests as seperate sub packages to reduce duplicated file names (#19951) 2022-06-15 09:02:00 +02:00
repo_collaboration.go Move issues related files into models/issues (#19931) 2022-06-13 17:37:59 +08:00
repo_test.go Move tests as seperate sub packages to reduce duplicated file names (#19951) 2022-06-15 09:02:00 +02:00
repo_transfer_test.go
repo_transfer.go Move issues related files into models/issues (#19931) 2022-06-13 17:37:59 +08:00
repo.go Add more linters to improve code readability (#19989) 2022-06-20 12:02:49 +02:00
statistic.go Add more linters to improve code readability (#19989) 2022-06-20 12:02:49 +02:00
task.go Fix typos related to ErrTaskDoesNotExist error (#20118) 2022-06-24 15:51:37 +02:00
token_test.go
token.go
upload.go
user_heatmap_test.go
user_heatmap.go
user.go Move issues related files into models/issues (#19931) 2022-06-13 17:37:59 +08:00