gitea/models
koalajoe23 2802f96e97
check user and repo for redirects when using git via SSH transport (#35416)
fixes #30565 

When using git with a gitea hosted repository, the HTTP-Transport did
honor the user and repository redirects, which are created when renaming
a user or repo and also when transferring ownership of a repo to a
different organization. This is extremely helpful, as repo URLs remain
stable and do not have to be migrated on each client's worktree and
other places, e.g. CI at once.

The SSH transport - which I favor - did not know of these redirections
and I implemented a lookup during the `serv` command.
2025-09-09 20:13:41 +00:00
..
actions Remove incorrect "db.DefaultContext" usages (#35366) 2025-08-28 03:52:43 +00:00
activities Remove incorrect "db.DefaultContext" usages (#35366) 2025-08-28 03:52:43 +00:00
admin Fix omitempty bug (#33663) 2025-02-20 12:39:21 -08:00
asymkey Remove incorrect "db.DefaultContext" usages (#35366) 2025-08-28 03:52:43 +00:00
auth Refactor db package (#35380) 2025-08-30 01:04:06 +08:00
avatars Remove incorrect "db.DefaultContext" usages (#35366) 2025-08-28 03:52:43 +00:00
db Refactor db package (#35380) 2025-08-30 01:04:06 +08:00
dbfs Remove incorrect "db.DefaultContext" usages (#35366) 2025-08-28 03:52:43 +00:00
fixtures check user and repo for redirects when using git via SSH transport (#35416) 2025-09-09 20:13:41 +00:00
git Remove incorrect "db.DefaultContext" usages (#35366) 2025-08-28 03:52:43 +00:00
issues when sorting issues by nearest due date, issues without due date should be sorted ascending (#35267) 2025-08-29 19:05:18 -07:00
migrations Remove incorrect "db.DefaultContext" usages (#35366) 2025-08-28 03:52:43 +00:00
organization Refactor db package (#35380) 2025-08-30 01:04:06 +08:00
packages Remove incorrect "db.DefaultContext" usages (#35366) 2025-08-28 03:52:43 +00:00
perm Remove incorrect "db.DefaultContext" usages (#35366) 2025-08-28 03:52:43 +00:00
project Remove incorrect "db.DefaultContext" usages (#35366) 2025-08-28 03:52:43 +00:00
pull Start automerge check again after the conflict check and the schedule (#34989) 2025-07-08 14:51:16 +00:00
renderhelper Fix commit message rendering and some UI problems (#34680) 2025-06-10 23:20:32 +08:00
repo Move some functions from package git to gitrepo (#33910) 2025-09-01 19:13:18 +00:00
secret Added Description Field for Secrets and Variables (#33526) 2025-03-17 19:24:54 +00:00
shared/types Refactor locale&string&template related code (#29165) 2024-02-14 21:48:45 +00:00
system Remove incorrect "db.DefaultContext" usages (#35366) 2025-08-28 03:52:43 +00:00
unit Run gopls modernize on codebase (#34751) 2025-06-18 01:48:09 +00:00
unittest Refactor db package (#35380) 2025-08-30 01:04:06 +08:00
user Remove incorrect "db.DefaultContext" usages (#35366) 2025-08-28 03:52:43 +00:00
webhook Remove incorrect "db.DefaultContext" usages (#35366) 2025-08-28 03:52:43 +00:00
main_test.go make writing main test easier (#27270) 2023-09-28 01:38:53 +00:00
repo_test.go Remove incorrect "db.DefaultContext" usages (#35366) 2025-08-28 03:52:43 +00:00
repo.go Use db.WithTx/WithTx2 instead of TxContext when possible (#35130) 2025-07-22 10:02:01 -07:00