Subject: Re: bug#57385: 28.1.91; project-find-regexp fails over tramp

From: Dmitry Gutov <[email-masked]>
Date: Thu, 25 Aug 2022 15:36:42 +0300

On 25.08.2022 14:25, Dmitry Gutov wrote:
> On 25.08.2022 09:57, André A. Gomes wrote:
>> Dmitry Gutov<[email-masked]>  writes:
>>
>>> On 24.08.2022 18:17, André A. Gomes wrote:
>>>> Hi Emacs,
>>>> It seems that running project-find-regexp fails over tramp.  Any idea?
>>>> Thanks.
>>> Hi!
>>>
>>> How does it fail? Does it signal an error? I don't see that in the
>>> backtrace.
>> It signals
>>
>> --8<---------------cut here---------------start------------->8---
>> split-string: Wrong type argument: stringp, nil
>> --8<---------------cut here---------------end--------------->8---
>>
>> The issue is that
>>
>> --8<---------------cut here---------------start------------->8---
>> (apply #'vc-git--run-command-string nil "ls-files" args)
>> --8<---------------cut here---------------end--------------->8---
>>
>> returns nil, in project--vc-list-files.
>>
>> Does this help?  Thanks.
> 
> Okay... Does it happen on one particular host, or with any directory 
> visited over Tramp?
> 
> I usually test Tramp functionality over the 'sudo' adapter.
> 
> E.g. /sudo:root@localhost:~/...

BTW, is there any chance that you don't have Git installed on the remote 
host?