Advanced Search: Code search doesn't mention which branch the search was done when no search results are returned
Currently the advance search is defaulted to main/master branch. Any code search done, which isn't present in the master/main branch results into an error message saying "We couldn't find any code results matching search text in project project text"
The error message is misleading as it doesn't mention to the user that the search was only done on master/main branch and not on other branches.
Steps to reproduce
- Have the advance search enabled on Gitlab
- Clone a project locally
- Commit a new file with text
Hello worldin a new branch and push it upstream - Go to the project in GitLab
- Click on Magnifying Lens
- Search for
Hello worldin that project
Actual Result
The following error message appears

Proposal
There should be an indication that the search was only focused on main/master branch and not other branch.
Edited by Vishal Patel