unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Juri Linkov <juri@linkov.net>
To: 50340@debbugs.gnu.org
Subject: bug#50340: Fix remote-location in vc-git-log-incoming
Date: Thu, 02 Sep 2021 19:16:49 +0300	[thread overview]
Message-ID: <87k0jz9clq.fsf@mail.linkov.net> (raw)

[-- Attachment #1: Type: text/plain, Size: 13 bytes --]

Tags: patch


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: vc-git-log-incoming-remote-location.patch --]
[-- Type: text/x-diff, Size: 480 bytes --]

diff --git a/lisp/vc/vc-git.el b/lisp/vc/vc-git.el
index a9856ee40d..2ed5bdffcd 100644
--- a/lisp/vc/vc-git.el
+++ b/lisp/vc/vc-git.el
@@ -1218,7 +1218,8 @@ vc-git-log-outgoing
 
 (defun vc-git-log-incoming (buffer remote-location)
   (vc-setup-buffer buffer)
-  (vc-git-command nil 0 nil "fetch")
+  (vc-git-command nil 0 nil "fetch" (unless (string= remote-location "")
+                                      remote-location))
   (vc-git-command
    buffer 'async nil
    "log"

             reply	other threads:[~2021-09-02 16:16 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-02 16:16 Juri Linkov [this message]
2021-09-02 23:29 ` bug#50340: Fix remote-location in vc-git-log-incoming Dmitry Gutov
2021-09-03  8:12   ` Juri Linkov
2021-09-04  1:50     ` Dmitry Gutov
2021-09-05 16:36       ` Juri Linkov
2021-09-05 19:28         ` Dmitry Gutov
2022-09-23 15:52           ` Juri Linkov
2022-10-02 18:35             ` Juri Linkov
2021-10-19 18:56         ` Lars Ingebrigtsen
2021-10-19 19:16           ` Juri Linkov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87k0jz9clq.fsf@mail.linkov.net \
    --to=juri@linkov.net \
    --cc=50340@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).