Subject: Re: bug#33394: 27.0.50; trampver cannot determine repository version

From: Noam Postavsky <[email-masked]>
Date: Wed, 01 Apr 2020 09:03:17 -0400

Clément Pit-Claudel <[email-masked]> writes:

> I'm still seeing a variant of this bug when git is not available:
>
> $ PATH= /usr/local/bin/emacs -Q --batch --eval '(setq debug-on-error t)' --eval "(require 'tramp)"
> Debugger entered--Lisp error: (file-missing "Searching for program" "No such file or directory" "git")
>   call-process("git" nil (t nil) nil "rev-parse" "--abbrev-ref" "HEAD")
>   emacs-repository-branch-git("/build/emacs/master/")
>   emacs-repository-get-branch("/build/emacs/master/")
>   byte-code("\3021$\0\303\304\305\306!\307\"\206\17\0\10\1\31\211;\205\37\0\310\1!\205\37\0\311\1!)\266\2020\207\210\312\207"
> [source-directory inhibit-message (error) t locate-dominating-file
> locate-library "tramp" ".git" file-directory-p
> emacs-repository-get-branch nil] 4)
>   (defconst tramp-repository-branch (byte-code

> Btw, I'm not sure why that error escapes your ignore-errors form.

See https://debbugs.gnu.org/40109#8

Essentially, the innermost condition-case handler takes precedence.