0
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-02-15 03:51:32 +01:00
gitea/models/repo
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.go
attachment_test.go
attachment.go
avatar_test.go
avatar.go
collaboration_test.go
collaboration.go
fork_test.go
fork.go
git.go
issue.go
language_stats.go
license.go
main_test.go
mirror.go
org_repo.go Move RepoTransfer from models to models/repo sub package (#32506) 2024-12-18 11:44:16 +08:00
pushmirror_test.go
pushmirror.go
redirect_test.go
redirect.go
release_test.go
release.go Refactor "string truncate" (#32984) 2024-12-26 11:56:03 +08:00
repo_indexer.go
repo_list_test.go
repo_list.go
repo_test.go Make git clone URL could use current signed-in user (#33091) 2025-01-07 13:17:44 +08:00
repo_unit_test.go
repo_unit.go
repo.go Make git clone URL could use current signed-in user (#33091) 2025-01-07 13:17:44 +08:00
search.go
star_test.go Enable tenv and testifylint rules (#32852) 2024-12-15 10:41:29 +00:00
star.go
topic_test.go
topic.go
transfer.go Move RepoTransfer from models to models/repo sub package (#32506) 2024-12-18 11:44:16 +08:00
update.go fix empty repo updated time (#33120) 2025-01-07 01:54:06 +08:00
upload.go
user_repo_test.go Enable tenv and testifylint rules (#32852) 2024-12-15 10:41:29 +00:00
user_repo.go
watch_test.go Enable tenv and testifylint rules (#32852) 2024-12-15 10:41:29 +00:00
watch.go
wiki_test.go Make git clone URL could use current signed-in user (#33091) 2025-01-07 13:17:44 +08:00
wiki.go Make git clone URL could use current signed-in user (#33091) 2025-01-07 13:17:44 +08:00