[go: up one dir, main page]

Skip to content

Linked file can not be fetched for an outdated MR verison

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

Example link.

How to reproduce

  1. Create a merge request
  2. Go to the Changes tab and copy a link to a random line
  3. Rebase MR branch against a newer target branch
  4. Force push the changes
  5. Try to open the copied link
  6. The linked file is not fetched because the latest version doesn't contain the linked file hash

image

Potential fix

We could always specify MR version when providing a linked file query. Alternative: always provide a trimmed commit hash together with the file hash (will increase link length by at least 11 symbols).

Edited by 🤖 GitLab Bot 🤖