This was resolved after linking to the repository as a stash repo instead of a plain git repo.
I used the below command in git to find out that git does think of the file as a text file.
git grep -I --name-only -e "" -- <filename> ...
It looks like you're new here. Sign in or register to get started.