From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Samuel Bronson Newsgroups: gmane.emacs.devel Subject: Re: Using msysgit and Github and eshell/shell on Windows Date: Fri, 13 Jul 2012 11:36:09 -0400 Message-ID: <3CB24545-9E6F-49F9-B6F4-D9350C4059D2@gmail.com> References: <5F470B9B-1262-4C2F-B2F0-64E7453F98B5@bbheim.de> <877gvb7cop.fsf@yandex.ru> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1342193781 18566 80.91.229.3 (13 Jul 2012 15:36:21 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 13 Jul 2012 15:36:21 +0000 (UTC) Cc: emacs-devel@gnu.org To: Dmitry Gutov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jul 13 17:36:21 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Sphul-0001Hk-Gq for ged-emacs-devel@m.gmane.org; Fri, 13 Jul 2012 17:36:19 +0200 Original-Received: from localhost ([::1]:34843 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sphuk-0005kc-Kd for ged-emacs-devel@m.gmane.org; Fri, 13 Jul 2012 11:36:18 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:52335) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sphuh-0005k5-Q5 for emacs-devel@gnu.org; Fri, 13 Jul 2012 11:36:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Sphug-0001pJ-9Y for emacs-devel@gnu.org; Fri, 13 Jul 2012 11:36:15 -0400 Original-Received: from mail-qa0-f41.google.com ([209.85.216.41]:53526) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sphug-0001oy-5H for emacs-devel@gnu.org; Fri, 13 Jul 2012 11:36:14 -0400 Original-Received: by qabg27 with SMTP id g27so479527qab.0 for ; Fri, 13 Jul 2012 08:36:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=cc:message-id:from:to:in-reply-to:content-type :content-transfer-encoding:mime-version:subject:date:references :x-mailer; bh=Rg6CeLkguEG7Rxx5Orkg5k7mu8B+1zf1xfI3MQRBwMg=; b=g1XQsS8dM91VZkMyfhC3E29AY7wIyjWtUXUQEdMjBG/DeWP7I0BizZHqGFcuv7Kdwp aEVFjYVbRggZmc2ZHnOjXFVlwbgf28lDGSCe9Kb1gGvSt1sjKcs7GdQZbONxjwQrNwU5 5eugy8KwomR6z1r/OKzXzifgeiKcEBwLllO+TzbSmYFG3iPDIIhcv3M6OVWn5Opefrkw cTrbJn1U71U+vHEc8hI94JicTwgtdb9S5TzT/T4DNFLRnzLYo3Iz+XXUZx+TfOkbg+s2 2jTx9L5YFT5Qfd/pqLGLR+gxVMeSx/oCsQHnADdIrhaIuy7CwyAuf6cxVAW47MGjqZj1 z+zA== Original-Received: by 10.224.101.193 with SMTP id d1mr3665660qao.20.1342193773562; Fri, 13 Jul 2012 08:36:13 -0700 (PDT) Original-Received: from [192.168.0.18] (207-172-123-137.c3-0.upd-ubr1.trpr-upd.pa.cable.rcn.com. [207.172.123.137]) by mx.google.com with ESMTPS id cz12sm11464147qab.5.2012.07.13.08.36.11 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 13 Jul 2012 08:36:12 -0700 (PDT) In-Reply-To: <877gvb7cop.fsf@yandex.ru> X-Mailer: Apple Mail (2.936) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.216.41 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:151594 Archived-At: On Jun 13, 2012, at 6:01 AM, Dmitry Gutov wrote: > Hi Bastian, > >> Whenever I run any git command that requires authentication (push, >> pull, fetch basically), Emacs starts the git process, but it never >> finishes. If I use the same commands (with the same executables) in >> different shells such as CMD, powershell, the git shell or the msys >> shell, git prompts me for my username and password. If I run the same >> commands in Emacs on OSX, Emacs even prompts me for my possword in >> the >> minibuffer! On Windows however, Emacs does not prompt me for my >> username or password, but apparently still waits for it eternally and >> the command just never completes. > > It's a known issue under MS Windows. See 7.2 here: > > http://www.gnu.org/software/emacs/windows/Sub_002dprocesses.html#Sub_002dprocesses Section 7.2 ends rather suddenly... but this happens because Windows doesn't use ptys, instead electing to have all "terminal" windows (called Consoles) handled by a single program, to which ntdll.dll is essentially hard-wired. (I suppose 9x probably implemented it in kernel32.dll directly?) >> Any pointers on how to debug this would be greatly appreciated. > > As far as I know, the generally accepted way is to set up Git to use > plink.exe instead of plain SSH. You'd need to launch pageant.exe > before > using any Git functionality that requires authentication, but on the > upside, you'll only have to enter the password once per startup. That's certainly what I do. Though I am, in point of fact, too lazy to even bother with passphrases on my SSH keys under *nix, and only did it on Windows because the prevalence of malware and the fact that I was keeping these particular keys on a flash drive made me uncomfortable leaving them unlocked.