GNU bug report logs -
#65763
Error opening a file from a Git working directory if Git is not installed
Previous Next
Full log
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
To reproduce:
1. Change current directory to a Git checkout (e.g. `~/git/emacs' or
something).
2. From the command line:
$ emacs --batch --eval "(progn (setf vc-git-program
\"git-is-not-installed\") (find-file-noselect \"whatever\"))"
Error: (file-missing "Searching for program" "No such file or
directory" "git-is-not-installed")
Expected: Emacs is able to open the file, Git must not be essential.
Usecase: on the real machine Git _is_ of course installed, but then you run
Emacs inside a Docker container that has _no_ Git, with a directory mapped
from your physical machine. In this setup there is appearance of a Git
working directory, yet Git executable is not available.
Appears to work fine up to Emacs 27, broken starting with Emacs 28.
Paul
[Message part 2 (text/html, inline)]
This bug report was last modified 1 year and 278 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.