GNU bug report logs - #65763
Error opening a file from a Git working directory if Git is not installed

Previous Next

Package: emacs;

Reported by: Paul Pogonyshev <pogonyshev <at> gmail.com>

Date: Tue, 5 Sep 2023 18:56:01 UTC

Severity: normal

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Paul Pogonyshev <pogonyshev <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: Error opening a file from a Git working directory if Git is not
 installed
Date: Tue, 5 Sep 2023 20:54:54 +0200
[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.