I sometimes log in to my localhost through another user, with tramp.
For instance, (find-file "/su:user2@:/home/user2/").
Then I go a a git repository inside that folder, and want to use helm-git-grep there.
Currently it doesn't work: it tries to run git grep with my main user, not with user2. It should do the su user2 first and run git grep as user2.
Tested in:
;; Version: 0.10.1
;; Package-Version: 20170614.1411
GNU Emacs 29.0.50 (build 1, x86_64-pc-linux-gnu, X toolkit, cairo version 1.16.0, Xaw scroll bars) of 2022-10-28`