summaryrefslogtreecommitdiffstats
path: root/app/controllers/repositories_controller.rb
Commit message (Collapse)AuthorAgeFilesLines
* Fix RuboCop offense Style/RedundantInterpolationUnfreeze (#39887).Go MAEDA2024-09-011-1/+1
| | | | | | | Since interpolated strings are always unfrozen in Ruby 3.0 and later, the use of `+""` is now redundant. git-svn-id: https://svn.redmine.org/redmine/trunk@23001 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix RuboCop offense Rails/HttpStatus (#39889).Go MAEDA2024-05-181-1/+1
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@22837 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Replaces use of Digest::MD5 / Digest::SHA1 with ActiveSupport::Digest (#35217).Marius Balteanu2024-05-071-1/+1
| | | | | | Patch by Jens Krämer (@jkraemer). git-svn-id: https://svn.redmine.org/redmine/trunk@22816 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Remove current year from source file copyright headers and update year in ↵Marius Balteanu2024-02-261-1/+1
| | | | | | footer to 2024 (#40043). git-svn-id: https://svn.redmine.org/redmine/trunk@22746 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Replace String#sub with delete_prefix / delete_suffix (#40008).Go MAEDA2024-01-081-1/+1
| | | | | | | Patch by Go MAEDA (@maeda). git-svn-id: https://svn.redmine.org/redmine/trunk@22596 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Revert r21883 which was an workaround for #37626 (#37732, #36320).Marius Balteanu2023-11-291-2/+1
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@22489 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Redirect to repositories#show after repository#fetch_changesets to avoid the ↵Go MAEDA2023-10-311-1/+5
| | | | | | | | | user-visible browser URL (#39238). Patch by Holger Just. git-svn-id: https://svn.redmine.org/redmine/trunk@22414 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Set a strict CSP policy for downloaded attachments, thumbnails, and raw ↵Go MAEDA2023-09-181-0/+5
| | | | | | | | | repository files(#38417). Patch by Holger Just. git-svn-id: https://svn.redmine.org/redmine/trunk@22295 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix RuboCop offense Performance/MapMethodChain (#37247).Go MAEDA2023-08-231-1/+1
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@22280 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Add "View annotation prior to this change" button in the annotate view of ↵Go MAEDA2023-04-301-0/+4
| | | | | | | | | Git (#35432). Patch by Takenori TAKAKI. git-svn-id: https://svn.redmine.org/redmine/trunk@22217 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Code cleanup of RepositoriesController#annotate (#35432).Go MAEDA2023-04-291-10/+4
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@22215 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Update copyright year to 2023 (#38141).Go MAEDA2023-01-011-1/+1
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@22013 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix rubocop warning (#37626).Marius Balteanu2022-10-021-1/+1
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@21886 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Add to do to fix the deprecation warning (#37626).Marius Balteanu2022-10-021-0/+1
| | | | git-svn-id: https://svn.redmine.org/redmine/trunk@21884 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix show diff of a javascript file in repository module is displayed without ↵Marius Balteanu2022-10-021-1/+1
| | | | | | | | | layout (#37626). Patch by Trang Tran Thi Quynh. git-svn-id: https://svn.redmine.org/redmine/trunk@21883 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Repository tab is not displayed if no repository is set as the main ↵Go MAEDA2022-07-271-1/+1
| | | | | | | | | repository (#33953). Patch by Yuichi HARADA. git-svn-id: https://svn.redmine.org/redmine/trunk@21741 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Deprecate and rename rss_* methods to atom_* methods (#15118).Marius Balteanu2022-03-191-1/+1
| | | | | | | Patch by Mischa The Evil and Marius BĂLTEANU git-svn-id: http://svn.redmine.org/redmine/trunk@21467 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Update copyright year in source files to 2022 (#36379).Go MAEDA2022-01-021-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@21342 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Stricter validation of given revisions of repositories (#35085).Go MAEDA2021-04-231-8/+13
| | | | | | | Patch by Holger Just. git-svn-id: http://svn.redmine.org/redmine/trunk@20962 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix "DEPRECATION WARNING: Rendering actions with '.' in the name is ↵Go MAEDA2021-04-011-1/+1
| | | | | | | | | deprecated: common/error_messages.api" (#29914, #34984). Patch by Pavel Rosický. git-svn-id: http://svn.redmine.org/redmine/trunk@20897 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Reverts r20895 (#29914, #34985).Go MAEDA2021-04-011-1/+1
| | | | | | | Wrong issue number. git-svn-id: http://svn.redmine.org/redmine/trunk@20896 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix "DEPRECATION WARNING: Rendering actions with '.' in the name is ↵Go MAEDA2021-04-011-1/+1
| | | | | | | | | deprecated: common/error_messages.api" (#29914, #34985). Patch by Pavel Rosický. git-svn-id: http://svn.redmine.org/redmine/trunk@20895 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Associated Revision API (#22008).Go MAEDA2021-03-261-2/+13
| | | | | | | Patch by Yuichi HARADA. git-svn-id: http://svn.redmine.org/redmine/trunk@20852 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Update copyright year in source files to 2021 (#33069).Go MAEDA2021-03-251-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@20846 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Allow manually fetching changesets (#8875).Go MAEDA2021-03-111-0/+5
| | | | | | | Patch by Yuichi HARADA. git-svn-id: http://svn.redmine.org/redmine/trunk@20772 e93f8b46-1217-0410-a6f0-8f06a7374b81
* remove spaces inside {} of RepositoriesControllerToshi MARUYAMA2020-10-021-6/+6
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@20107 e93f8b46-1217-0410-a6f0-8f06a7374b81
* add empty line after guard clause to RepositoriesControllerToshi MARUYAMA2020-10-021-0/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@20106 e93f8b46-1217-0410-a6f0-8f06a7374b81
* add space after comma to RepositoriesControllerToshi MARUYAMA2020-10-021-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@20099 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Reverts r19569 (#33071).Go MAEDA2020-03-141-2/+0
| | | | | | | 404 error after deleting an attachment. git-svn-id: http://svn.redmine.org/redmine/trunk@19579 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Require sudo mode for actions to delete contents (#33071).Go MAEDA2020-03-101-0/+2
| | | | | | | Patch by Go MAEDA. git-svn-id: http://svn.redmine.org/redmine/trunk@19569 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Update copyright year in source files to 2020 (#33069).Go MAEDA2020-03-031-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@19553 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Diff view for .js files in repositories is broken (#32449).Go MAEDA2020-02-271-1/+1
| | | | | | | Patch by Mizuki ISHIKAWA. git-svn-id: http://svn.redmine.org/redmine/trunk@19531 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Repository browser does not render previews for audio/video files (#32153).Go MAEDA2020-02-041-0/+6
| | | | | | | Patch by Mizuki ISHIKAWA. git-svn-id: http://svn.redmine.org/redmine/trunk@19492 e93f8b46-1217-0410-a6f0-8f06a7374b81
* code cleanup: rubocop: fix Layout/LeadingCommentSpace in ↵Toshi MARUYAMA2019-09-151-2/+2
| | | | | | app/controllers/repositories_controller.rb git-svn-id: http://svn.redmine.org/redmine/trunk@18473 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: fix error when *.yml and *.txt show (#31141, #30850)Toshi MARUYAMA2019-05-301-0/+1
| | | | | | Contributed by Mizuki ISHIKAWA. git-svn-id: http://svn.redmine.org/redmine/trunk@18211 e93f8b46-1217-0410-a6f0-8f06a7374b81
* scm: early return in diff if diff is nil as same as show, changes, and etc. ↵Toshi MARUYAMA2019-05-301-1/+1
| | | | | | | | (#31141, #30850) Contributed by Mizuki ISHIKAWA. git-svn-id: http://svn.redmine.org/redmine/trunk@18206 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Update copyright year.Go MAEDA2019-05-251-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@18198 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Custom Exception classes should inherit StandardError instead of Exception ↵Go MAEDA2019-05-211-2/+2
| | | | | | | | | (#31387). Patch by Go MAEDA. git-svn-id: http://svn.redmine.org/redmine/trunk@18187 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Use Regexp#match? to reduce allocations of MatchData object (#28940).Go MAEDA2019-03-271-1/+1
| | | | | | | Patch by Pavel Rosický. git-svn-id: http://svn.redmine.org/redmine/trunk@18011 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Fix FrozenError in RepositoriesController#diff (#31052, #26561).Go MAEDA2019-03-191-1/+1
| | | | | | | Patch by Mizuki ISHIKAWA. git-svn-id: http://svn.redmine.org/redmine/trunk@17990 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Support frozen_string_literal in app/**/*.rb (#26561).Go MAEDA2019-03-171-1/+1
| | | | | | | Contributed by Pavel Rosický. git-svn-id: http://svn.redmine.org/redmine/trunk@17987 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Add "frozen_string_literal: false" for all files (#26561).Go MAEDA2019-03-151-0/+2
| | | | | | | This will be changed to true in the future. git-svn-id: http://svn.redmine.org/redmine/trunk@17947 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Repository entry pagination (#29395).Go MAEDA2018-10-041-0/+7
| | | | | | | Patch by Jens Krämer. git-svn-id: http://svn.redmine.org/redmine/trunk@17568 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Render repository graphs using Chart.js instead of SVG (#26253).Jean-Philippe Lang2017-06-251-55/+19
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@16699 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Update copyright.Jean-Philippe Lang2017-06-251-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@16685 e93f8b46-1217-0410-a6f0-8f06a7374b81
* remove is_binary_data? from String (#25563)Toshi MARUYAMA2017-06-101-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@16644 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Don't check that param is a Hash.Jean-Philippe Lang2017-06-031-1/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@16606 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Always send images user-uploaded images with Content-Disposition: attachment ↵Jean-Philippe Lang2017-01-291-1/+1
| | | | | | | | (#24199). Patch by Holger Just. git-svn-id: http://svn.redmine.org/redmine/trunk@16285 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Code cleanup.Jean-Philippe Lang2016-10-041-8/+14
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@15886 e93f8b46-1217-0410-a6f0-8f06a7374b81
* Adds accessors for report_last_commit.Jean-Philippe Lang2016-10-041-23/+1
| | | | git-svn-id: http://svn.redmine.org/redmine/trunk@15885 e93f8b46-1217-0410-a6f0-8f06a7374b81