From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Paul Pogonyshev Newsgroups: gmane.emacs.bugs Subject: bug#65763: Error opening a file from a Git working directory if Git is not installed Date: Tue, 5 Sep 2023 20:54:54 +0200 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000514d8d0604a12a44" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14197"; mail-complaints-to="usenet@ciao.gmane.io" To: 65763@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Sep 05 20:56:18 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qdbDm-0003TJ-Bw for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 05 Sep 2023 20:56:18 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qdbDW-0005C0-Nv; Tue, 05 Sep 2023 14:56:02 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qdbDV-0005Bs-NZ for bug-gnu-emacs@gnu.org; Tue, 05 Sep 2023 14:56:01 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qdbDV-0005AR-FF for bug-gnu-emacs@gnu.org; Tue, 05 Sep 2023 14:56:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qdbDV-0003ie-RV for bug-gnu-emacs@gnu.org; Tue, 05 Sep 2023 14:56:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Paul Pogonyshev Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 05 Sep 2023 18:56:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 65763 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.169394012014243 (code B ref -1); Tue, 05 Sep 2023 18:56:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 5 Sep 2023 18:55:20 +0000 Original-Received: from localhost ([127.0.0.1]:59271 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qdbCq-0003hd-AZ for submit@debbugs.gnu.org; Tue, 05 Sep 2023 14:55:20 -0400 Original-Received: from lists.gnu.org ([2001:470:142::17]:40602) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qdbCo-0003hQ-9l for submit@debbugs.gnu.org; Tue, 05 Sep 2023 14:55:18 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qdbCi-00056Z-15 for bug-gnu-emacs@gnu.org; Tue, 05 Sep 2023 14:55:12 -0400 Original-Received: from mail-lf1-x134.google.com ([2a00:1450:4864:20::134]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qdbCf-00054t-9O for bug-gnu-emacs@gnu.org; Tue, 05 Sep 2023 14:55:11 -0400 Original-Received: by mail-lf1-x134.google.com with SMTP id 2adb3069b0e04-500c37d479aso4530873e87.2 for ; Tue, 05 Sep 2023 11:55:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1693940106; x=1694544906; darn=gnu.org; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date:message-id:reply-to; bh=qEYvvgypcJ1sbv2fg/5QSjND/NbA5aVfToD95TqpEt8=; b=T1B8xpqhsiDDoGVDGllQvzpciDFRhMGQDBnXCXNYhfKfADJPkOz4OdG9dNn0kLZBqr ZRdFrwLtzs2KCnMmLy3pSGiYzI8KbALewz0e8oYM9CiceQ9h5CWInbYCYZlxygJOD7M5 TYf2vsF+VLVZVI/f91ujWZ+7qjmS7SUZSgJS0fbSZfhDeGIkiZkAS2rXNjpMEpE3UZY2 CQlUhLyNBlCNgbPrJOOwu6zyyOyawr+gIaiBwn1XQ+q9tNKMhEUa7TOWZWidrt//CMZ/ rHuJRJGGXYTu49sQsf5Bq+nILebDYUoWyU+0CsNnLkAFS7y/WkUKbM3+KJGXL4yYwn9I SgRw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693940107; x=1694544907; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date:message-id:reply-to; bh=qEYvvgypcJ1sbv2fg/5QSjND/NbA5aVfToD95TqpEt8=; b=igJ9pPFJccHOZulqxz49ZmHBlQG8RrMULp8gkOoH5CJih//T/YqXRdTPDn7fXM7wIm JaZIzNIlKbNVSKTIp9/tvLelXpOcY/IQUwHH+t8DPMmsBT1IcPt3Ri7/uruKddQI5d8B Rtpyqcz/UL/tvva9Xj0wj8ndvxCnAEhPJzf+gwOlPjNf+9w7JcrILX7quRGzCkFqE6aI xQ89dVWCDOjuVMZ99PqXJZwpaSznzy7ZOrncGlicejnSnDXqpyWjAralEn5ad9gxpxTx clio8wkzBy3XxlYkjAPQaYezAXkwtyBI/8M/l4UcuJEvTEQe8VCFizKvbstyHpWUoKEy Ta0Q== X-Gm-Message-State: AOJu0Ywm3asP81I47r1CYW0X1fiwFT0EW2ypiggO3CuHswM8O0NpOFd+ Q8NE3G+dxtKC9doJ0FnaXkgr3pvOG4iliQ6aNRdkUvfXcw== X-Google-Smtp-Source: AGHT+IHo8PnZW2e/XOx6N7tF7vPhhHZNLrLiUT2F1AQ1mVt8MI0nYuPvZJi8D+sQppnYhTMnhqERYhSAd+wIp7+xxf0= X-Received: by 2002:a05:6512:3254:b0:500:a694:46f with SMTP id c20-20020a056512325400b00500a694046fmr447892lfr.19.1693940106479; Tue, 05 Sep 2023 11:55:06 -0700 (PDT) Received-SPF: pass client-ip=2a00:1450:4864:20::134; envelope-from=pogonyshev@gmail.com; helo=mail-lf1-x134.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:269392 Archived-At: --000000000000514d8d0604a12a44 Content-Type: text/plain; charset="UTF-8" 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 --000000000000514d8d0604a12a44 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
To reproduce:

1. Change current directory to a Git = checkout (e.g. `~/git/emacs' or something).
2. From the command line= :

=C2=A0 =C2=A0 =C2=A0 =C2=A0$ emacs --batch --eval "(progn (se= tf vc-git-program \"git-is-not-installed\") (find-file-noselect \= "whatever\"))"
=C2=A0 =C2=A0 =C2=A0 =C2=A0Error: (file-mi= ssing "Searching for program" "No such file or directory&quo= t; "git-is-not-installed")

Expected: Emacs is able to open= the file, Git must not be essential.

Usecase: on the real machine G= it _is_ of course installed, but then you run Emacs inside a Docker contain= er that has _no_ Git, with a directory mapped from your physical machine.= =C2=A0 In this setup there is appearance of a Git working directory, yet Gi= t executable is not available.

Appears to work fine up to Emacs 27, = broken starting with Emacs 28.

Paul
--000000000000514d8d0604a12a44--