doomemacs / doomemacs/core

vc-diff does not work in tramp buffer

Open
#6,225 2 comments 1 reaction 0 assignees View on GitHub
is:bug needs-triage
Dominant language
Emacs Lisp
Stars
22.7k
Forks
3.1k
Avg merge
10h 46m
Merged PRs (30d)
4

Description

### What did you expect to happen?

Run `M-x vc-diff` in a tramp buffer visiting a remote file, it displays the difference of working file and file in repository.

### What actually happened?

Emacs prompts "File is not under version control" in mode-line and nothing happens.

### Describe your attempts to resolve the issue

Try to reset `vc-ignore-dir-regexp` to its original value, `M-x vc-diff` works again.

commit 0b5243c12c1e69787b99f71a7c7c729ea15dd1a1 is related to the modification of `vc-ignore-dir-regexp`.

### Steps to reproduce

1. Open emacs
2. Open a tramp file in a git repository: ssh:user@host:./file.el
3. Do some modification to that file
4. `M-x vc-diff` to find difference.

### System Information

https://pastebin.com/xG0hYBKw

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.