diff kitten: Fix a regression that broke diffing against remote files

Fixes #7797
This commit is contained in:
Kovid Goyal
2024-08-28 11:00:42 +05:30
parent d363513884
commit 8eb0b556b7
3 changed files with 13 additions and 1 deletions

View File

@@ -58,7 +58,7 @@ func get_ssh_file(hostname, rpath string) (string, error) {
for strings.HasPrefix(rpath, "/") {
rpath = rpath[1:]
}
cmd := []string{ssh.SSHExe(), hostname, "tar", "-c", "-f", "-"}
cmd := []string{ssh.SSHExe(), hostname, "tar", "--dereference", "--create", "--file", "-"}
if is_abs {
cmd = append(cmd, "-C", "/")
}