From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.bugs Subject: bug#50340: Fix remote-location in vc-git-log-incoming Date: Thu, 02 Sep 2021 19:16:49 +0300 Organization: LINKOV.NET Message-ID: <87k0jz9clq.fsf@mail.linkov.net> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="23369"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) To: 50340@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Sep 02 18:44:59 2021 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 1mLppj-0005xF-Ic for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 02 Sep 2021 18:44:59 +0200 Original-Received: from localhost ([::1]:47644 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mLpph-0004L6-Lw for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 02 Sep 2021 12:44:57 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37030) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mLpPe-0001wF-Qp for bug-gnu-emacs@gnu.org; Thu, 02 Sep 2021 12:18:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:58578) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mLpPe-0002Ut-JF for bug-gnu-emacs@gnu.org; Thu, 02 Sep 2021 12:18:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mLpPe-0002vL-F3 for bug-gnu-emacs@gnu.org; Thu, 02 Sep 2021 12:18:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Juri Linkov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 02 Sep 2021 16:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 50340 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.163059945610779 (code B ref -1); Thu, 02 Sep 2021 16:18:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 2 Sep 2021 16:17:36 +0000 Original-Received: from localhost ([127.0.0.1]:41888 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mLpPE-0002nb-Ar for submit@debbugs.gnu.org; Thu, 02 Sep 2021 12:17:36 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:58676) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mLpPC-0002ma-TB for submit@debbugs.gnu.org; Thu, 02 Sep 2021 12:17:35 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36710) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mLpP9-00013Z-3n for bug-gnu-emacs@gnu.org; Thu, 02 Sep 2021 12:17:31 -0400 Original-Received: from relay6-d.mail.gandi.net ([217.70.183.198]:32813) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mLpP5-0001tC-5L for bug-gnu-emacs@gnu.org; Thu, 02 Sep 2021 12:17:30 -0400 Original-Received: (Authenticated sender: juri@linkov.net) by relay6-d.mail.gandi.net (Postfix) with ESMTPSA id 655B1C0004 for ; Thu, 2 Sep 2021 16:17:22 +0000 (UTC) Received-SPF: pass client-ip=217.70.183.198; envelope-from=juri@linkov.net; helo=relay6-d.mail.gandi.net X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, 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" Xref: news.gmane.io gmane.emacs.bugs:213290 Archived-At: --=-=-= Content-Type: text/plain Tags: patch --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=vc-git-log-incoming-remote-location.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" --=-=-=--