GNU bug report logs - #6137
[Yuriy Vostrikov] emacs, vc-git

Previous Next

Package: emacs;

Reported by: Stefan Monnier <monnier <at> iro.umontreal.ca>

Date: Fri, 7 May 2010 20:42:02 UTC

Severity: normal

Tags: patch

Done: Chong Yidong <cyd <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 6137 in the body.
You can then email your comments to 6137 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to owner <at> debbugs.gnu.org, help-debbugs <at> gnu.org:
bug#6137; Package debbugs.gnu.org. (Fri, 07 May 2010 20:42:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Stefan Monnier <monnier <at> iro.umontreal.ca>:
New bug report received and forwarded. Copy sent to help-debbugs <at> gnu.org. (Fri, 07 May 2010 20:42:03 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: submit <at> debbugs.gnu.org
Cc: Yuriy Vostrikov <delamonpansie <at> gmail.com>
Subject: [Yuriy Vostrikov] emacs, vc-git
Date: Fri, 07 May 2010 16:41:15 -0400
[ I do not use Git enough to be sure if his patch is the right way to
  fix it.  It does look OK, tho maybe the right (but harder) place to
  fix it is in Tramp.  Can someone take a look and install it?  --Stef  ]

Hello.
You are last commiter of vc-git.el so i'm writing to you.

It's probably a good idea to forcefully disable pager then calling git
command from vc-git.el.
If buffer is tramp controlled then git will be run on remote host by
tramp magic. In this particular case
git stdout will be connected to pty instead of pipe and default git
behavior to call $PAGER in this case.
Which is effectively makes vc-git broken on tramp controlled buffers.
Patch is attached.


=== modified file 'lisp/vc-git.el'
--- lisp/vc-git.el	2010-04-21 02:05:24 +0000
+++ lisp/vc-git.el	2010-05-05 09:28:56 +0000
@@ -966,7 +966,7 @@
 (defun vc-git-command (buffer okstatus file-or-list &rest flags)
   "A wrapper around `vc-do-command' for use in vc-git.el.
 The difference to vc-do-command is that this function always invokes `git'."
-  (apply 'vc-do-command (or buffer "*vc*") okstatus "git" file-or-list flags))
+    (apply 'vc-do-command (or buffer "*vc*") okstatus "git" file-or-list (cons "--no-pager" flags)))
 
 (defun vc-git--empty-db-p ()
   "Check if the git db is empty (no commit done yet)."





Information forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#6137; Package emacs. (Fri, 07 May 2010 21:40:02 GMT) Full text and rfc822 format available.

Message #8 received at 6137 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: 6137 <at> debbugs.gnu.org
Cc: delamonpansie <at> gmail.com, Stefan Monnier <monnier <at> iro.umontreal.ca>
Subject: Re: bug#6137: [Yuriy Vostrikov] emacs, vc-git
Date: Fri, 07 May 2010 17:39:02 -0400
[ Resending from help-debbugs, where it ended up. Please specify a
package if you want to use the submit <at> debbugs address to create a new
report.]


Stefan Monnier wrote:
  
  [ I do not use Git enough to be sure if his patch is the right way to
    fix it.  It does look OK, tho maybe the right (but harder) place to
    fix it is in Tramp.  Can someone take a look and install it?  --Stef  ]
  
  Hello.
  You are last commiter of vc-git.el so i'm writing to you.
  
  It's probably a good idea to forcefully disable pager then calling git
  command from vc-git.el.
  If buffer is tramp controlled then git will be run on remote host by
  tramp magic. In this particular case git stdout will be connected to
  pty instead of pipe and default git behavior to call $PAGER in this
  case.
  Which is effectively makes vc-git broken on tramp controlled buffers.
  Patch is attached.
  
  
  === modified file 'lisp/vc-git.el'
  --- lisp/vc-git.el	2010-04-21 02:05:24 +0000
  +++ lisp/vc-git.el	2010-05-05 09:28:56 +0000
  @@ -966,7 +966,7 @@
   (defun vc-git-command (buffer okstatus file-or-list &rest flags)
     "A wrapper around `vc-do-command' for use in vc-git.el.
   The difference to vc-do-command is that this function always invokes `git'."
  -  (apply 'vc-do-command (or buffer "*vc*") okstatus "git" file-or-list flags))
  +    (apply 'vc-do-command (or buffer "*vc*") okstatus "git" file-or-list (cons "--no-pager" flags)))
   
   (defun vc-git--empty-db-p ()
     "Check if the git db is empty (no commit done yet)."




Reply sent to Chong Yidong <cyd <at> gnu.org>:
You have taken responsibility. (Fri, 30 Nov 2012 07:46:02 GMT) Full text and rfc822 format available.

Notification sent to Stefan Monnier <monnier <at> iro.umontreal.ca>:
bug acknowledged by developer. (Fri, 30 Nov 2012 07:46:03 GMT) Full text and rfc822 format available.

Message #13 received at 6137-done <at> debbugs.gnu.org (full text, mbox):

From: Chong Yidong <cyd <at> gnu.org>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: Yuriy Vostrikov <delamonpansie <at> gmail.com>, 6137-done <at> debbugs.gnu.org
Subject: Re: bug#6137: [Yuriy Vostrikov] emacs, vc-git
Date: Fri, 30 Nov 2012 15:43:38 +0800
Stefan Monnier <monnier <at> iro.umontreal.ca> writes:

> [ I do not use Git enough to be sure if his patch is the right way to
>   fix it.  It does look OK, tho maybe the right (but harder) place to
>   fix it is in Tramp.  Can someone take a look and install it?  --Stef  ]
>
> Hello.
> You are last commiter of vc-git.el so i'm writing to you.
>
> It's probably a good idea to forcefully disable pager then calling git
> command from vc-git.el.  If buffer is tramp controlled then git will
> be run on remote host by tramp magic. In this particular case git
> stdout will be connected to pty instead of pipe and default git
> behavior to call $PAGER in this case.  Which is effectively makes
> vc-git broken on tramp controlled buffers.  Patch is attached.

Since no one's done anything about this, and the fix looks OK, I've
committed it to trunk.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 28 Dec 2012 12:24:03 GMT) Full text and rfc822 format available.

This bug report was last modified 12 years and 178 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.