emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: RFC: Automatic setup for bug-reference-mode


From: Tassilo Horn
Subject: Re: RFC: Automatic setup for bug-reference-mode
Date: Thu, 18 Jun 2020 08:06:37 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Hi chaps,

>> Typing 'C-x v d' (vc-dir) on a repository without 'origin'
>> raises the error "Failed (status 128): git --no-pager remote get-url  ."
>
> Also noticed that (when the current branch has no default remote).
> Just fixed in master.

Ah, sorry, haven't seen your fix.  But I think it may still have been
wrong.  I think the actual problem was that

  git config branch.<branch>.remote

wasn't necessarily called in the given project DIR so returned the
global default remote "origin".  So I now bind default-directory to the
given DIR.

I'm not exactly sure if that is really needed but at least it was needed
for M-: (vc-git-dir-extra-headers "~/some/project/") which I used to
reproduce the problem (which still occurred).  Maybe it's not needed
when vc-dir calls it, but let's say it is a good change anyway since it
makes the function debuggable standalone.

Thanks,
Tassilo



reply via email to

[Prev in Thread] Current Thread [Next in Thread]