Closed taras-yemets closed 4 months ago
As a workaround, we can check whether the file exists in the requested revision either when the blame popover is rendered or when the “View blame prior to this change” link is clicked: intercept => loading => “file doesn’t exist” message or navigate to URL (similar to what we do when Cmd+Click on occurrence to go to definition).
Closing since we're tracking this here: https://github.com/sourcegraph/sourcegraph/issues/60159
With a fix inbound.
It seems we are not rendering the link anymore.
The "View blame prior to this change" link in the git blame popover doesn't work if the file has been added or renamed in the current revision because we assume it had the same name in the previous one.
Steps to reproduce:
Expected behavior:
The link is inactive or not rendered at all if the file didn't exist (with this name) in the previous revision.
Actual behavior:
The link takes us to the "File not found page".
If you would like immediate help on this, please email support@sourcegraph.com (you can still create the issue, but there are no SLAs on issues like there are for support requests).