Attempting to edit a file from a tag fails with incorrect error message
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
Summary
Attempting to edit a file from a tag fails with incorrect error message You can’t edit files directly in this project. Fork this project and submit a merge request with your changes.
and shows a button to fork
Steps to reproduce
- Browse to a tag
- Select a file
- Click
Edit
(doesn't matter if it is open in Web IDE or edit
Example Project
https://gitlab.com/Woodz1/gitlab-bug-repros/-/blob/release/v1.0.2/test.txt#modal-confirm-fork-edit
What is the current bug behavior?
The screen shows ``You can’t edit files directly in this project. Fork this project and submit a merge request with your changes.` and shows a button to fork
What is the expected correct behavior?
Should open the editor/Web IDE to browse the file at the tag
Relevant logs and/or screenshots
Output of checks
This bug happens on GitLab.com
Results of GitLab environment info
Expand for output related to GitLab environment info
(For installations with omnibus-gitlab package run and paste the output of: `sudo gitlab-rake gitlab:env:info`) (For installations from source run and paste the output of: `sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production`)
Results of GitLab application Check
Expand for output related to the GitLab application check
(For installations with omnibus-gitlab package run and paste the output of:
sudo gitlab-rake gitlab:check SANITIZE=true
)(For installations from source run and paste the output of:
sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production SANITIZE=true
)(we will only investigate if the tests are passing)