gitea/cmd
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.go Migrate to urfave v3 (#34510) 2025-06-10 12:35:12 +00:00
admin.go Fix context usages (#35348) 2025-08-27 11:00:01 +00:00
admin_auth.go Migrate to urfave v3 (#34510) 2025-06-10 12:35:12 +00:00
admin_auth_ldap.go Migrate to urfave v3 (#34510) 2025-06-10 12:35:12 +00:00
admin_auth_ldap_test.go Migrate to urfave v3 (#34510) 2025-06-10 12:35:12 +00:00
admin_auth_oauth.go Refactor OpenIDConnect to support SSH/FullName sync (#34978) 2025-07-10 18:35:59 +00:00
admin_auth_oauth_test.go Refactor OpenIDConnect to support SSH/FullName sync (#34978) 2025-07-10 18:35:59 +00:00
admin_auth_smtp.go Fix incorrect cli default values and default command (#34765) 2025-06-18 23:25:11 +08:00
admin_auth_smtp_test.go Fix incorrect cli default values and default command (#34765) 2025-06-18 23:25:11 +08:00
admin_regenerate.go Migrate to urfave v3 (#34510) 2025-06-10 12:35:12 +00:00
admin_user.go Migrate to urfave v3 (#34510) 2025-06-10 12:35:12 +00:00
admin_user_change_password.go Migrate to urfave v3 (#34510) 2025-06-10 12:35:12 +00:00
admin_user_change_password_test.go Remove incorrect "db.DefaultContext" usages (#35366) 2025-08-28 03:52:43 +00:00
admin_user_create.go Migrate to urfave v3 (#34510) 2025-06-10 12:35:12 +00:00
admin_user_create_test.go Remove incorrect "db.DefaultContext" usages (#35366) 2025-08-28 03:52:43 +00:00
admin_user_delete.go Migrate to urfave v3 (#34510) 2025-06-10 12:35:12 +00:00
admin_user_delete_test.go Remove incorrect "db.DefaultContext" usages (#35366) 2025-08-28 03:52:43 +00:00
admin_user_generate_access_token.go Migrate to urfave v3 (#34510) 2025-06-10 12:35:12 +00:00
admin_user_list.go Migrate to urfave v3 (#34510) 2025-06-10 12:35:12 +00:00
admin_user_must_change_password.go Migrate to urfave v3 (#34510) 2025-06-10 12:35:12 +00:00
admin_user_must_change_password_test.go Remove incorrect "db.DefaultContext" usages (#35366) 2025-08-28 03:52:43 +00:00
cert.go Run `gopls modernize` on codebase (#34751) 2025-06-18 01:48:09 +00:00
cert_test.go Migrate to urfave v3 (#34510) 2025-06-10 12:35:12 +00:00
cmd.go Fix incorrect cli default values and default command (#34765) 2025-06-18 23:25:11 +08:00
cmd_test.go Fix incorrect cli default values and default command (#34765) 2025-06-18 23:25:11 +08:00
docs.go Migrate to urfave v3 (#34510) 2025-06-10 12:35:12 +00:00
doctor.go Fix context usages (#35348) 2025-08-27 11:00:01 +00:00
doctor_convert.go Migrate to urfave v3 (#34510) 2025-06-10 12:35:12 +00:00
doctor_test.go Migrate to urfave v3 (#34510) 2025-06-10 12:35:12 +00:00
dump.go Use github.com/mholt/archives replace github.com/mholt/archiver (#35390) 2025-09-01 19:40:12 +00:00
dump_repo.go Fix context usages (#35348) 2025-08-27 11:00:01 +00:00
embedded.go enforce explanation for necessary nolints and fix bugs (#34883) 2025-06-27 21:48:03 +08:00
generate.go Migrate to urfave v3 (#34510) 2025-06-10 12:35:12 +00:00
hook.go Improve CLI commands (#34973) 2025-07-10 19:36:55 +08:00
hook_test.go Use test context in tests and new loop system in benchmarks (#33648) 2025-02-20 09:57:40 +00:00
keys.go Improve CLI commands (#34973) 2025-07-10 19:36:55 +08:00
mailer.go Migrate to urfave v3 (#34510) 2025-06-10 12:35:12 +00:00
main.go Improve CLI commands (#34973) 2025-07-10 19:36:55 +08:00
main_test.go Improve CLI commands (#34973) 2025-07-10 19:36:55 +08:00
manager.go Migrate to urfave v3 (#34510) 2025-06-10 12:35:12 +00:00
manager_logging.go Fix incorrect cli default values and default command (#34765) 2025-06-18 23:25:11 +08:00
migrate.go Migrate to urfave v3 (#34510) 2025-06-10 12:35:12 +00:00
migrate_storage.go Migrate to urfave v3 (#34510) 2025-06-10 12:35:12 +00:00
migrate_storage_test.go Remove incorrect "db.DefaultContext" usages (#35366) 2025-08-28 03:52:43 +00:00
restore_repo.go Migrate to urfave v3 (#34510) 2025-06-10 12:35:12 +00:00
serv.go check user and repo for redirects when using git via SSH transport (#35416) 2025-09-09 20:13:41 +00:00
web.go Fix context usages (#35348) 2025-08-27 11:00:01 +00:00
web_acme.go Enable addtional linters (#34085) 2025-04-01 10:14:01 +00:00
web_graceful.go Refactor some tests (#34580) 2025-06-03 01:26:19 +00:00
web_https.go Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00