1
1
mirror of https://github.com/go-gitea/gitea.git synced 2024-11-19 04:04:59 +01:00
gitea/models/migrations
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
..
fixtures
migrations_test.go Refactor git module, make Gitea use internal git config (#19732) 2022-06-10 09:57:49 +08:00
migrations.go Allow to mark files in a PR as viewed (#19007) 2022-05-07 20:28:10 +02:00
testlogger_test.go Fix typo (#19889) 2022-06-04 17:43:25 -04:00
v70.go
v71.go
v72.go
v73.go
v74.go
v75.go
v76.go
v77.go
v78.go
v79.go
v80.go
v81.go
v82.go
v83.go
v84.go
v85.go
v86.go
v87.go
v88.go
v89.go
v90.go
v91.go
v92.go
v93.go
v94.go
v95.go
v96.go
v97.go
v98.go
v99.go
v100.go
v101.go
v102.go
v103.go
v104.go
v105.go
v106.go
v107.go
v108.go
v109.go
v110.go
v111.go
v112.go
v113.go
v114.go
v115.go
v116.go
v117.go
v118.go
v119.go
v120.go
v121.go
v122.go
v123.go
v124.go
v125.go
v126.go
v127.go
v128.go
v129.go
v130.go
v131.go
v132.go
v133.go
v134.go
v135.go
v136.go
v137.go
v138.go
v139.go
v140.go
v141.go
v142.go
v143.go
v144.go
v145.go
v146.go
v147.go
v148.go
v149.go
v150.go
v151.go Fix order by parameter (#19849) 2022-06-04 20:18:50 +01:00
v152.go
v153.go
v154.go
v155.go
v156.go
v157.go
v158.go
v159.go
v160.go
v161.go
v162.go
v163.go
v164.go
v165.go Fix order by parameter (#19849) 2022-06-04 20:18:50 +01:00
v166.go
v167.go
v168.go
v169.go
v170.go
v171.go
v172.go
v173.go
v174.go
v175.go
v176_test.go
v176.go
v177_test.go
v177.go
v178.go
v179.go Fix order by parameter (#19849) 2022-06-04 20:18:50 +01:00
v180.go
v181_test.go
v181.go
v182_test.go
v182.go
v183.go
v184.go
v185.go
v186.go
v187.go
v188.go
v189_test.go
v189.go
v190.go
v191.go
v192.go
v193_test.go
v193.go
v194.go
v195_test.go
v195.go
v196.go
v197.go
v198.go
v199.go
v200.go
v201.go
v202.go
v203.go
v204.go
v205.go Fix order by parameter (#19849) 2022-06-04 20:18:50 +01:00
v206.go
v207.go
v208.go
v209.go
v210_test.go
v210.go
v211.go
v212.go
v213.go Add "Allow edits from maintainer" feature (#18002) 2022-04-28 17:45:33 +02:00
v214.go Auto merge pull requests when all checks succeeded via API (#9307) 2022-05-08 01:05:52 +08:00
v215.go Delete related PullAutoMerge and ReviewState on User/Repo Deletion (#19649) 2022-05-08 15:46:34 +02:00