Skip to content

Ensure command pallet search respects current ref

Jacques Erasmus requested to merge 455188-fix-find-file-ref into master

What does this MR do and why?

Ensures the global command pallet respects the current ref for project files.

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Before After
Searching for a file that only exists on master while on a different branch returns the file from master File that only exists on master is not included in the results
Screenshot_2024-04-10_at_11.52.09 Screenshot_2024-04-10_at_11.53.33

How to set up and validate locally

  1. View a repository with any non-default branch selected
  2. Search for a file that only exists on the default branch
  3. No results should be returned
  4. Search for a file that only exists on the selected branch
  5. The file should be in the results

Related to #455188 (closed)

Edited by Jacques Erasmus

Merge request reports