GNU bug report logs - #78405
31.0.50; vc-next-action from *vc-diff* on remote file: Git error

Previous Next

Package: emacs;

Reported by: Manuel Giraud <manuel <at> ledu-giraud.fr>

Date: Tue, 13 May 2025 12:07:01 UTC

Severity: normal

Found in version 31.0.50

Done: Sean Whitton <spwhitton <at> spwhitton.name>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Manuel Giraud <manuel <at> ledu-giraud.fr>
To: Sean Whitton <spwhitton <at> spwhitton.name>
Cc: 78405 <at> debbugs.gnu.org
Subject: bug#78405: 31.0.50; vc-next-action from *vc-diff* on remote file: Git error
Date: Wed, 14 May 2025 14:01:09 +0200
Sean Whitton <spwhitton <at> spwhitton.name> writes:

> Hello,
>
> On Tue 13 May 2025 at 02:06pm +02, Manuel Giraud wrote:
>
>> Hi,
>>
>> Using git, it seems that `vc-next-action' from a *vc-diff* buffer on
>> remote files does not work anymore.  Here's a recipe:
>>
>>      - emacs -Q
>>      - C-x C-f /-:host:/path/to/file/in_a_git_repo
>>      - *some edit*
>>      - C-x v =  ;; now in a *vc-diff* buffer
>>      - C-x v v  ;; jumps to *vc-log* buffer
>>      - *edit log* and C-c C-c
>>
>> I get the following error in the *Messages* buffer:
>> vc-do-command: Failed (status 128): git --no-pager apply --cached /scp:host:/tmp/git-patch2KyUYD .
>>
>> and the *vc* buffer contains:
>> error: can't open patch '/scp:host:/tmp/git-patch2KyUYD': No such file or directory
>>
>> Note: this works locally and this also works on remote file when there
>> is no *vc-diff* buffer involved.
>
> Thanks.  The problem was introduced by my commit
> 7f60aa45aab4191a44d6d83ec6c3004e4901469b.
>
> I am not sure how to fix it, yet.

Thanks for looking into this.  I don't really understand the goal of
your commit but maybe is related to the fact that 'patch-file' and
'cached' there end up having a TRAMP form (like "/scp:host:/foo") that
git cannot understand.
-- 
Manuel Giraud




This bug report was last modified 4 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.