wxiaoguang
a0051634b9
Refactor git module, make Gitea use internal git config ( #19732 )
...
* Refactor git module, make Gitea use internal git config, add safe.directory config
* introduce git.InitSimple and git.InitWithConfigSync, make serv cmd use gitconfig
* use HOME instead of GIT_CONFIG_GLOBAL, because git always needs a correct HOME
* fix cmd env in cmd/serv.go
* fine tune error message
* Fix a incorrect test case
* fix configAddNonExist
* fix configAddNonExist logic, add `--fixed-value` flag, add tests
* add configSetNonExist function in case it's needed.
* use configSetNonExist for `user.name` and `user.email`
* add some comments
* Update cmd/serv.go
Co-authored-by: zeripath <art27@cantab.net>
* Update cmd/serv.go
Co-authored-by: zeripath <art27@cantab.net>
* Update modules/git/git.go
Co-authored-by: zeripath <art27@cantab.net>
* Update modules/setting/setting.go
Co-authored-by: zeripath <art27@cantab.net>
* Update modules/git/repo_attribute.go
Co-authored-by: zeripath <art27@cantab.net>
* fix spaces in messages
* use `configSet("core.protectNTFS", ...)` instead of `globalCommandArgs`
* remove GIT_CONFIG_NOSYSTEM, continue to use system's git config
* Update cmd/serv.go
Co-authored-by: zeripath <art27@cantab.net>
* fix merge
* remove code for safe.directory
* separate git.CommonEnvs to CommonGitCmdEnvs and CommonCmdServEnvs
* avoid Golang's data race error
Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
2022-06-10 09:57:49 +08:00
..
2022-01-20 18:46:10 +01:00
2022-05-06 10:12:30 +01:00
2022-04-14 21:58:21 +08:00
2022-05-02 23:22:45 +08:00
2022-05-02 23:22:45 +08:00
2022-04-01 02:15:46 +02:00
2022-05-15 20:43:27 +02:00
2022-05-21 14:06:24 +01:00
2022-03-31 17:20:39 +08:00
2022-06-06 16:01:49 +08:00
2022-05-20 18:57:49 +02:00
2022-01-20 18:46:10 +01:00
2022-06-07 16:51:33 -04:00
2022-01-20 18:46:10 +01:00
2022-04-25 22:45:22 +02:00
2022-01-26 12:10:10 +08:00
2022-06-10 09:57:49 +08:00
2022-05-20 22:08:52 +08:00
2022-05-02 23:22:45 +08:00
2020-10-02 23:37:53 -04:00
2022-01-20 18:46:10 +01:00
2022-04-29 01:39:50 +08:00
2022-05-09 17:54:51 +02:00
2022-01-19 19:31:39 -05:00
2022-06-10 09:57:49 +08:00
2022-04-01 16:47:50 +08:00
2022-05-02 23:22:45 +08:00
2022-05-03 18:03:34 +02:00
2022-06-09 00:46:39 +03:00
2022-01-20 18:46:10 +01:00
2022-06-09 10:50:05 +08:00
2022-04-02 00:34:57 +08:00
2022-05-11 12:09:36 +02:00
2022-05-02 23:22:45 +08:00
2022-04-19 12:55:35 -04:00
2022-04-03 17:46:48 +08:00
2021-06-07 07:27:09 +02:00
2021-09-22 13:38:34 +08:00
2022-03-31 19:01:43 +02:00
2022-06-03 15:36:18 +01:00
2021-08-19 16:41:20 -04:00
2022-05-02 23:22:45 +08:00
2022-04-27 10:32:04 -05:00
2021-09-22 13:38:34 +08:00
2022-01-20 18:46:10 +01:00
2022-06-10 09:57:49 +08:00
2022-02-04 18:03:15 +01:00
2022-01-20 18:46:10 +01:00
2022-06-06 10:43:17 -04:00
2022-06-05 08:16:14 +01:00
2022-03-30 16:42:47 +08:00
2022-04-29 15:38:11 -04:00
2022-05-02 23:22:45 +08:00
2022-04-25 20:03:01 +02:00
2022-06-08 16:59:16 +08:00
2022-05-11 12:09:36 +02:00
2022-04-03 17:46:48 +08:00
2022-04-03 17:46:48 +08:00
2022-05-28 18:10:14 +03:00
2022-01-20 18:46:10 +01:00
2021-12-20 04:41:31 +00:00
2021-12-23 16:27:33 +00:00
2020-04-05 07:20:50 +01:00
2022-06-10 09:57:49 +08:00
2022-04-25 13:55:12 +08:00
2022-05-31 21:27:44 +01:00