gitea/services/repository
wxiaoguang 34dfc25b83
Make git clone URL could use current signed-in user (#33091)
close #33086

* Add a special value for "SSH_USER" setting: `(DOER_USERNAME)`
* Improve parseRepositoryURL and add tests (now it doesn't have hard
dependency on some setting values)

Many changes are just adding "ctx" and "doer" argument to functions.

By the way, improve app.example.ini, remove all `%(key)s` syntax, it
only makes messy and no user really cares about it.

Document: https://gitea.com/gitea/docs/pulls/138
2025-01-07 13:17:44 +08:00
..
archiver Enable tenv and testifylint rules (#32852) 2024-12-15 10:41:29 +00:00
commitstatus Add new event commit status creation and webhook implementation (#27151) 2024-11-07 06:41:49 +00:00
files Clarify path param naming (#32969) 2024-12-24 13:47:45 +00:00
adopt_test.go Reduce integration test overhead (#32475) 2024-11-14 19:28:46 +00:00
adopt.go Refactor pprof labels and process desc (#32909) 2024-12-20 12:17:14 +08:00
avatar_test.go Fix repo avatar conflict (#32958) 2024-12-23 02:52:25 +00:00
avatar.go Fix repo avatar conflict (#32958) 2024-12-23 02:52:25 +00:00
branch.go Move some errors to their own sub packages (#32880) 2024-12-20 18:05:29 +00:00
cache.go Always enable caches (#28527) 2023-12-19 09:29:05 +00:00
check.go Refactor pprof labels and process desc (#32909) 2024-12-20 12:17:14 +08:00
collaboration_test.go Move AddCollabrator and CreateRepositoryByExample to service layer (#32419) 2024-11-07 11:28:11 +08:00
collaboration.go Move team related functions to service layer (#32537) 2024-11-27 21:12:26 +00:00
commit.go Move context from modules to services (#29440) 2024-02-27 08:12:22 +01:00
contributors_graph_test.go disable gravatar in test (#32529) 2024-11-21 04:30:48 +00:00
contributors_graph.go Enable more revive linter rules (#30608) 2024-04-22 11:48:42 +00:00
create.go Make git clone URL could use current signed-in user (#33091) 2025-01-07 13:17:44 +08:00
delete_test.go Delete repos of org when purge delete user (#27273) 2023-10-19 13:16:11 +00:00
delete.go Fix repo avatar conflict (#32958) 2024-12-23 02:52:25 +00:00
fork_test.go Add option to prohibit fork if user reached maximum limit of repositories (#21848) 2022-12-27 15:21:14 -06:00
fork.go Refactor pprof labels and process desc (#32909) 2024-12-20 12:17:14 +08:00
generate_test.go Move generate from module to service (#29465) 2024-02-28 14:40:36 +01:00
generate.go Make git clone URL could use current signed-in user (#33091) 2025-01-07 13:17:44 +08:00
hooks.go Simplify how git repositories are opened (#28937) 2024-01-27 21:09:51 +01:00
init.go Refactor pprof labels and process desc (#32909) 2024-12-20 12:17:14 +08:00
lfs_test.go Remove GetByBean method because sometimes it's danger when query condition parameter is zero and also introduce new generic methods (#28220) 2023-12-07 15:27:36 +08:00
lfs.go Use the database object format name but not read from git repoisitory everytime and fix possible migration wrong objectformat when migrating a sha256 repository (#29294) 2024-02-24 06:55:19 +00:00
license_test.go Enable tenv and testifylint rules (#32852) 2024-12-15 10:41:29 +00:00
license.go Support repo license (#24872) 2024-10-01 15:25:08 -04:00
main_test.go make writing main test easier (#27270) 2023-09-28 01:38:53 +00:00
merge_upstream.go Support "merge upstream branch" (Sync fork) (#32741) 2024-12-06 21:10:35 +00:00
migrate.go Refactor pprof labels and process desc (#32909) 2024-12-20 12:17:14 +08:00
push.go Fix broken releases when re-pushing tags (#32435) 2024-11-08 10:53:06 +08:00
repo_team_test.go Move team related functions to service layer (#32537) 2024-11-27 21:12:26 +00:00
repo_team.go Move RepoTransfer from models to models/repo sub package (#32506) 2024-12-18 11:44:16 +08:00
repository_test.go refactor some functions to support ctx as first parameter (#21878) 2022-12-03 10:48:26 +08:00
repository.go Support repo license (#24872) 2024-10-01 15:25:08 -04:00
setting.go Fix an actions schedule bug (#28942) 2024-01-31 14:55:12 +00:00
template.go Move generate from module to service (#29465) 2024-02-28 14:40:36 +01:00
transfer_test.go Move RepoTransfer from models to models/repo sub package (#32506) 2024-12-18 11:44:16 +08:00
transfer.go Move RepoTransfer from models to models/repo sub package (#32506) 2024-12-18 11:44:16 +08:00