]> source.dussan.org Git - gitea.git/commit
Add support for HEAD ref in /src/branch and /src/commit routes (#27384) (#27407)
authorGiteabot <teabot@gitea.io>
Tue, 3 Oct 2023 08:13:49 +0000 (16:13 +0800)
committerGitHub <noreply@github.com>
Tue, 3 Oct 2023 08:13:49 +0000 (08:13 +0000)
commit8c6464e39b5069ebfca254a9b7867f9b7fa57bd9
tree0f9b9d70d026f5e6fe0562a78d211c8cab443b49
parent4f02b4a7b9912c11971b335cb8b14fcd229bc5af
Add support for HEAD ref in /src/branch and /src/commit routes (#27384) (#27407)

Backport #27384 by @rbhz

Add support for HEAD in paths:
```
/src/branch/HEAD/README.md
/src/commit/HEAD/README.md
```

Closes #26920

Co-authored-by: Kirill Sorokin <48334247+rbhz@users.noreply.github.com>
modules/context/repo.go
tests/integration/repo_test.go