Ensure command pallet search respects current ref
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 |
How to set up and validate locally
- View a repository with any non-default branch selected
- Search for a file that only exists on the default branch
- No results should be returned
- Search for a file that only exists on the selected branch
- The file should be in the results
Related to #455188 (closed)
Edited by Jacques Erasmus