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

From: Sean Whitton <[email-masked]>
Date: Wed, 14 May 2025 15:36:31 +0100

Hello both,

The FILES-OR-LIST argument to vc-do-command is meant to be VCS-managed
file names, only.  The temporary patch file is not that, so it shouldn't
be passed through there.

The actual bug was that the paths to temporary files were being
relativised to the repository root by the call to file-relative-name in
vc-do-command.

We need to de-TRAMP the temporary file name before passing it to git.

-- 
Sean Whitton