You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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>
|
3 years ago |
.. |
activity.go
|
Propagate context and ensure git commands run in request context (#17868)
|
3 years ago |
attachment.go
|
Move some repository related code into sub package (#19711)
|
3 years ago |
blame.go
|
Refactor i18n, use Locale to provide i18n/translation related functions (#18648)
|
3 years ago |
branch.go
|
Move some helper files out of models (#19355)
|
3 years ago |
cherry_pick.go
|
Remove `RequireHighlightJS` field, update plantuml example. (#19615)
|
3 years ago |
commit.go
|
Move almost all functions' parameter db.Engine to context.Context (#19748)
|
3 years ago |
compare.go
|
Move some repository related code into sub package (#19711)
|
3 years ago |
download.go
|
Set the LastModified header for raw files (#18356)
|
3 years ago |
editor.go
|
Remove `RequireHighlightJS` field, update plantuml example. (#19615)
|
3 years ago |
editor_test.go
|
Make git.OpenRepository accept Context (#19260)
|
3 years ago |
find.go
|
Feature: Find files in repo (#15028)
|
3 years ago |
http.go
|
Move access and repo permission to models/perm/access (#19350)
|
3 years ago |
http_test.go
|
Fix http path bug (#16117)
|
4 years ago |
issue.go
|
Move some repository related code into sub package (#19711)
|
3 years ago |
issue_content_history.go
|
Move almost all functions' parameter db.Engine to context.Context (#19748)
|
3 years ago |
issue_dependency.go
|
Move milestone to models/issues/ (#19278)
|
3 years ago |
issue_label.go
|
Move almost all functions' parameter db.Engine to context.Context (#19748)
|
3 years ago |
issue_label_test.go
|
Update HTTP status codes to modern codes (#18063)
|
3 years ago |
issue_lock.go
|
Update HTTP status codes to modern codes (#18063)
|
3 years ago |
issue_stopwatch.go
|
Move almost all functions' parameter db.Engine to context.Context (#19748)
|
3 years ago |
issue_test.go
|
format with gofumpt (#18184)
|
3 years ago |
issue_timetrack.go
|
Delete related PullAutoMerge and ReviewState on User/Repo Deletion (#19649)
|
3 years ago |
issue_watch.go
|
Update HTTP status codes to modern codes (#18063)
|
3 years ago |
lfs.go
|
Refactor git module, make Gitea use internal git config (#19732)
|
3 years ago |
main_test.go
|
Use a struct as test options (#19393)
|
3 years ago |
middlewares.go
|
Renamed ctx.User to ctx.Doer. (#19161)
|
3 years ago |
migrate.go
|
Use a more general (and faster) method to sanitize URLs with credentials (#19239)
|
3 years ago |
milestone.go
|
Move milestone to models/issues/ (#19278)
|
3 years ago |
packages.go
|
Hide private repositories in packages (#19584)
|
3 years ago |
patch.go
|
Remove `RequireHighlightJS` field, update plantuml example. (#19615)
|
3 years ago |
projects.go
|
Move almost all functions' parameter db.Engine to context.Context (#19748)
|
3 years ago |
projects_test.go
|
Decouple unit test code from business code (#17623)
|
3 years ago |
pull.go
|
Move some repository related code into sub package (#19711)
|
3 years ago |
pull_review.go
|
Move almost all functions' parameter db.Engine to context.Context (#19748)
|
3 years ago |
release.go
|
Move almost all functions' parameter db.Engine to context.Context (#19748)
|
3 years ago |
release_test.go
|
Decouple unit test, remove intermediate `unittestbridge` package (#17662)
|
3 years ago |
repo.go
|
Move some repository related code into sub package (#19711)
|
3 years ago |
search.go
|
Remove `RequireHighlightJS` field, update plantuml example. (#19615)
|
3 years ago |
setting.go
|
Ensure minimum mirror interval is reported on settings page (#19895)
|
3 years ago |
setting_protected_branch.go
|
Move almost all functions' parameter db.Engine to context.Context (#19748)
|
3 years ago |
settings_test.go
|
Move access and repo permission to models/perm/access (#19350)
|
3 years ago |
tag.go
|
Move access and repo permission to models/perm/access (#19350)
|
3 years ago |
topic.go
|
Renamed ctx.User to ctx.Doer. (#19161)
|
3 years ago |
treelist.go
|
Feature: Find files in repo (#15028)
|
3 years ago |
view.go
|
Add support for rendering terminal output with colors (#19497)
|
3 years ago |
webhook.go
|
Move almost all functions' parameter db.Engine to context.Context (#19748)
|
3 years ago |
wiki.go
|
Automatically render wiki TOC (#19873)
|
3 years ago |
wiki_test.go
|
Make git.OpenRepository accept Context (#19260)
|
3 years ago |