You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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
2 months ago
..
archiver.go Add support for sha256 repositories (#23894) 1 year ago
attachment.go Azure blob storage support (#30995) 10 months ago
attachment_test.go More refactoring of `db.DefaultContext` (#27083) 2 years ago
avatar.go Return an empty string when a repo has no avatar in the repo API (#31187) 10 months ago
avatar_test.go Fix duplicate sub-path for avatars (#31365) 9 months ago
collaboration.go Add user blocking (#29028) 1 year ago
collaboration_test.go Add user blocking (#29028) 1 year ago
fork.go Refactor find forks and fix possible bugs that weak permissions check (#32528) 4 months ago
fork_test.go refactor some functions to support ctx as first parameter (#21878) 2 years ago
git.go Add merge style `fast-forward-only` (#28954) 1 year ago
issue.go Clean up log messages (#30313) 11 months ago
language_stats.go Penultimate round of `db.DefaultContext` refactor (#27414) 1 year ago
license.go Support repo license (#24872) 5 months ago
main_test.go make writing main test easier (#27270) 1 year ago
mirror.go More `db.DefaultContext` refactor (#27265) 1 year ago
org_repo.go Move RepoTransfer from models to models/repo sub package (#32506) 3 months ago
pushmirror.go Refactor push mirror find and add check for updating push mirror (#32539) 4 months ago
pushmirror_test.go Refactor deletion (#28610) 1 year ago
redirect.go Final round of `db.DefaultContext` refactor (#27587) 1 year ago
redirect_test.go Final round of `db.DefaultContext` refactor (#27587) 1 year ago
release.go Refactor "string truncate" (#32984) 3 months ago
release_test.go Add tag name in the commits list (#31082) 7 months ago
repo.go Make git clone URL could use current signed-in user (#33091) 2 months ago
repo_indexer.go Add support for sha256 repositories (#23894) 1 year ago
repo_list.go Refactor find forks and fix possible bugs that weak permissions check (#32528) 4 months ago
repo_list_test.go Allow code search by filename (#32210) 5 months ago
repo_test.go Make git clone URL could use current signed-in user (#33091) 2 months ago
repo_unit.go Refactor repo unit "disabled" check (#31389) 9 months ago
repo_unit_test.go add disable workflow feature (#26413) 2 years ago
search.go Fix `recentupdate` sorting bugs (#32505) 4 months ago
star.go Add user blocking (#29028) 1 year ago
star_test.go Enable tenv and testifylint rules (#32852) 3 months ago
topic.go Refactor topic Find functions and add more tests for pagination (#30127) 12 months ago
topic_test.go Refactor topic Find functions and add more tests for pagination (#30127) 12 months ago
transfer.go Move RepoTransfer from models to models/repo sub package (#32506) 3 months ago
update.go fix empty repo updated time (#33120) 2 months ago
upload.go Refactor deletion (#28610) 1 year ago
user_repo.go Fix get reviewers' bug (#32415) 4 months ago
user_repo_test.go Enable tenv and testifylint rules (#32852) 3 months ago
watch.go Add user blocking (#29028) 1 year ago
watch_test.go Enable tenv and testifylint rules (#32852) 3 months ago
wiki.go Make git clone URL could use current signed-in user (#33091) 2 months ago
wiki_test.go Make git clone URL could use current signed-in user (#33091) 2 months ago