gitea

Development moved to Codeberg

Commits at 31a2bf29eda2f9bdba7ba51c1ee9f9a444a7996e

  1. 31a2bf29 Fix a navbar UI bug in Safari (#18092) wxiaoguang authored at GitHub comitted at
  2. 16adaaea Instead of using routerCtx just escape the url before routing (#18086) A consequence of forcibly setting the RoutePath to the escaped url is that the auto routing to endpoints without terminal slashes fails (Causing #18060.) This failure raises the possibility that forcibly setting the RoutePath causes other unexpected behaviors too. Therefore, instead we should simply pre-escape the URL in the process registering handler. Then the request URL will be properly escaped for all the following calls. Fix #17938 Fix #18060 Replace #18062 Replace #17997 Signed-off-by: Andrew Thornton <art27@cantab.net> zeripath authored at GitHub comitted at
  3. 26070eb8 When the git repository on storage is changed, the repository modal should also be updated (#18088) User would keep seeing an empty repo if: * An error occurs during the first git pushing/receiving * A user replaces the Gitea's empty repository manually Fix: when a user is viewing the repository web page, if the repoModal.IsEmpty is true, we check the git repository again to detect whether it is really empty. However: the IsEmpty flag is deeply broken and should be removed. For example it's possible for a repository to be non-empty by that flag but still 500 because there are no branches - only tags -or the default branch is non-extant as it has been 0-pushed. wxiaoguang authored at GitHub comitted at
  4. c7151c2f - name: new parameter in CreateForkOption to give the forked repository (#18066) a custom name, intended to be used when there's a name conflict - When a fork request results in a name conflict, HTTP 409: Conflict is returned instead of 500 - API documentation for the above mentioned changes Signed-off-by: realaravinth <realaravinth@batsense.net> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> Co-authored-by: zeripath <art27@cantab.net> Aravinth Manivannan authored at GitHub comitted at
  5. 532383d7 When attempting to subscribe other user to issue report why access denied (#18091) Fix #18090 Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> zeripath authored at GitHub comitted at
  6. d7770539 Improve interface when comparing a branch which has created a pull request (#17911) * Improve interface when comparing a branch which has created a pull request * Take the note back Lunny Xiao authored at GitHub comitted at
  7. 7cc44491 Add API to manage repo tranfers (#17963) qwerty287 authored at GitHub comitted at
  8. 5754080e Fix various typos of software names (#18083) * `git` -> `Git` * `Github` and `github` -> `GitHub` * `crowdin` -> `Crowdin` * `git-lfs` -> `Git LFS` * `githooks`, `git hooks`, `git-hooks` -> `Git Hooks` * `discord` -> `Discord` * `2fa` -> `2FA` * `gitlab` and `Gitlab` -> `GitLab` * `web hook` -> `webhook` * `linux` -> `Linux` * `sqlite` -> `SQLite` * `MYSQL` and `mysql` -> `MySQL` * rename refs to `master` branch -> `main` * Fix English grammar qwerty287 authored at GitHub comitted at
  9. a5df7ba6 Prevent NPE if gitea uploader fails to open url (#18080) If http.Get() returns an error return nil and err before attempting to use the broken file. Thanks to walker xiong for spotting this bug. Signed-off-by: Andrew Thornton <art27@cantab.net> zeripath authored at GitHub comitted at
  10. ffc08c19 Do not read or write git reference files directly (#18079) Git will and can pack references into packfiles and therefore if you write/read the files directly you will get false results. Instead you should use update-ref and show-ref. To that end I have created three new functions in git/repo_commit.go that will do this correctly. Related #17191 Signed-off-by: Andrew Thornton <art27@cantab.net> zeripath authored at GitHub comitted at
  11. e0cf3d86 Migrated Repository will show modifications when possible (#17191) * Read patches to get history 99rgosse authored at GitHub comitted at
  12. ba6efb10 Quote references to the user table in consistency checks (#18072) Although #17487 ensured that the table was quoted in the join it missed that the query part of the check also needed to be quoted. Fix #17485 Signed-off-by: Andrew Thornton <art27@cantab.net> zeripath authored at GitHub comitted at
  13. d097fd6b Only create pprof files for gitea serv if explicitly asked for (#18068) zeripath authored at GitHub comitted at
  14. 62dcf1a6 Add NotFound handler (#18062) PR #17997 means that urls with terminal '/' are no longer immediately mapped to the url without a terminal slash. However, it has revealed that the NotFound handler appears to have been lost. This PR adds back in a NotFound handler that simply redirects to a path without the terminal slash or runs the NotFound handler. Fix #18060 Signed-off-by: Andrew Thornton <art27@cantab.net> zeripath authored at GitHub comitted at
  15. a9ed1c5c Add API to get file commit history (#17652) Adds an API endpoint `api/v1/repos/{owner}/{repo}/git/history/{filepath}` to get the commits affecting the given file or directory. Closes https://github.com/go-gitea/gitea/issues/16206 and closes https://github.com/go-gitea/gitea/issues/16703 qwerty287 authored at GitHub comitted at
  16. d155ffc6 [skip ci] Updated translations via Crowdin GiteaBot authored at GiteaBot comitted at
  17. cb05d3a2 Add List-Unsubscribe header (#17804) Fixes #13283 Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> mscherer authored at GitHub comitted at
  18. 7be82f4a Avoid running go vet twice (#18059) Gusted authored at GitHub comitted at
  19. 7821370c [Frontport] Changelog v1.15.8 (#18052) * Changelog v1.15.8 * bump version 6543 authored at GitHub comitted at
  20. 273bef1b Fix continuance tests (#18027) Gusted authored at GitHub comitted at
  21. d8ae769d update docker image to latest go version (#18048) techknowlogick authored at GitHub comitted at
  22. 7cc7f0ed TestRepository_GetTag intermittently panics due to an NPE (#18043) There are repeated panics in tests due to TestRepository_GetTag failing to run properly. This happens when we attempt to reset the internal repo for a tag which has failed to load. The problem is - the panic that this is causing is preventing us from finding what the real error is. This PR simply moves the failure out so we have a chance to see what really is failing. Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> zeripath authored at GitHub comitted at
  23. bef93abd Ensure that git repository is closed before transfer (#18049) Repository Transfer requires that the repository directory is renamed - which is not possible on Windows if the git repository is open. Fix #17885 Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> zeripath authored at GitHub comitted at
  24. be91df42 [skip ci] Updated translations via Crowdin GiteaBot authored at GiteaBot comitted at
  25. 57d0461a Make test work with different default branch config (#18038) * Make test work with different default branch config On a system configured with a different default branch name, doGitInitTestRepository will create a repository with a branch named differently, and so further tests would break: --- FAIL: TestGit/HTTP/PushCreate/SuccessfullyPushAndCreateTestRepository (0.02s) git_helper_for_declarative_test.go:167: Error Trace: git_helper_for_declarative_test.go:167 Error: Received unexpected error: exit status 1 - error: src refspec master does not match any error: failed to push some refs to 'http://127.0.0.1:3003/user2/repo-tmp-push-create-http.git' Test: TestGit/HTTP/PushCreate/SuccessfullyPushAndCreateTestRepository git_test.go:587: Error Trace: git_test.go:587 Error: Received unexpected error: repository does not exist [id: 0, uid: 0, owner_name: user2, name: repo-tmp-push-create-http] Test: TestGit/HTTP/PushCreate * Update integrations/git_helper_for_declarative_test.go Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: 6543 <6543@obermui.de> mscherer authored at GitHub comitted at
  26. 3f34f095 Extract CodeMirror styles (#17960) - Extract CodeMirror-related styles to separate files - Generalize CodeMirror styles where possible - Improve fullscreen and side-by-side mode for dark theme Co-authored-by: 6543 <6543@obermui.de> silverwind authored at GitHub comitted at
  27. 660c30db Migration 204 use Sync2 (#18044) * format nit * Sync2 6543 authored at GitHub comitted at
  28. 0ac84504 Move POST /{username}/action/{action} to simply POST /{username} (#18045) The current code unfortunately requires that `action` be a reserved repository name as it prevents posts to change the settings for action repositories. However, we can simply change action handler to work on POST /{username} instead. Fix #18037 Signed-off-by: Andrew Thornton <art27@cantab.net> zeripath authored at GitHub comitted at
  29. ce840bb1 Fix delete u2f keys modal (#18040) Lunny Xiao authored at GitHub comitted at
  30. bcc13f38 Reset Session ID on login (#18018) * Reset Session ID on login When logging in the SessionID should be reset and the session cleaned up. Signed-off-by: Andrew Thornton <art27@cantab.net> * with new session.RegenerateID function Signed-off-by: Andrew Thornton <art27@cantab.net> * update go-chi/session Signed-off-by: Andrew Thornton <art27@cantab.net> * Ensure that session id is changed after oauth data is set and between account linking pages too Signed-off-by: Andrew Thornton <art27@cantab.net> * placate lint Signed-off-by: Andrew Thornton <art27@cantab.net> * as per review Signed-off-by: Andrew Thornton <art27@cantab.net> zeripath authored at GitHub comitted at