bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#50340: Fix remote-location in vc-git-log-incoming


From: Juri Linkov
Subject: bug#50340: Fix remote-location in vc-git-log-incoming
Date: Thu, 02 Sep 2021 19:16:49 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu)

Tags: patch

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 via email to

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