forgejo/routers
Gusted 0d0ab1af1f
[GITEA] Accept shorter commit IDs in web route
- Be more liberal in what Forgejo accepts, by reducing the minimum
amount of characters for SHA to 4 characters, which is the minimum
amount that  Git needs in order to figure out which commit was meant.
- It's safe to reduce this requirements, as commits are passed to Git
which will error if the given commit ID results in more than one Git
object. Forgejo will catch this error as that the Commit doesn't exist,
which is a error that's already being handled in most places gracefully.
- Added integration testing.
- Resolves https://codeberg.org/forgejo/forgejo/issues/1760

(cherry picked from commit 0d655c7384)
(cherry picked from commit 9b9aca2a02)
2023-12-04 14:22:21 +01:00
..
api [GITEA] Drop sha256-simd in favor of stdlib 2023-12-04 14:22:20 +01:00
common Clean up template locale usage (#27856) 2023-10-31 22:11:48 +08:00
install [GITEA] Add password length check on install page 2023-12-04 14:19:26 +01:00
private [CLI] implement forgejo-cli 2023-12-04 12:21:19 +01:00
utils Implement FSFE REUSE for golang files (#21840) 2022-11-27 18:20:29 +00:00
web [GITEA] Accept shorter commit IDs in web route 2023-12-04 14:22:21 +01:00
init.go [API] Forgejo API /api/forgejo/v1 2023-12-04 12:47:01 +01:00