From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Bastian Bechtold Newsgroups: gmane.emacs.devel Subject: Using msysgit and Github and eshell/shell on Windows Date: Wed, 13 Jun 2012 10:08:41 +0200 Message-ID: <5F470B9B-1262-4C2F-B2F0-64E7453F98B5@bbheim.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Apple Message framework v1278) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1339574940 22170 80.91.229.3 (13 Jun 2012 08:09:00 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 13 Jun 2012 08:09:00 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jun 13 10:08:58 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 1SeidI-0004kG-39 for ged-emacs-devel@m.gmane.org; Wed, 13 Jun 2012 10:08:52 +0200 Original-Received: from localhost ([::1]:45924 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SeidH-000489-Ob for ged-emacs-devel@m.gmane.org; Wed, 13 Jun 2012 04:08:51 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:37502) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SeidE-000481-Ff for emacs-devel@gnu.org; Wed, 13 Jun 2012 04:08:49 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SeidC-0008BU-M5 for emacs-devel@gnu.org; Wed, 13 Jun 2012 04:08:48 -0400 Original-Received: from mail-bk0-f41.google.com ([209.85.214.41]:53631) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SeidC-0008BF-C8 for emacs-devel@gnu.org; Wed, 13 Jun 2012 04:08:46 -0400 Original-Received: by bkcjm19 with SMTP id jm19so273541bkc.0 for ; Wed, 13 Jun 2012 01:08:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=from:content-type:content-transfer-encoding:subject:date:message-id :to:mime-version:x-mailer; bh=x/E0YoGLeeqSNdfEZR92vHlF3uJvwdujusl2hvGr89Q=; b=z5rCHbDY8NK7xHRUTBzGXc8/XRf8h2y3G/eXIptgPVBVYUyQx9j2e61YTYWMo6+tIz AXxosrGYMs8ZEE1DpdPrfvsUvP3BMas0NlHx87tnz9OkgSH0E4DW64QXKbqVelxlOOu5 Ty0m4dpPvu0g5MXD1UCQeSHxWiksRJ5FHTwXomBh7W1cDFopUvhYz4jgJbhP4gmhpwPw gCc/fE1clevpH1yaZactKw/rHnQGztGSceHQ5DUYXlorCWGVaiPXmtZgKNNWw8RHAZP0 2upn3nKCVVP1KtS5ePtXVf4zgiUG3gFsW91we3u6X8E2rU9SRFVY5U3k0A7QHDntAPk/ a9ug== Original-Received: by 10.204.151.69 with SMTP id b5mr12767601bkw.69.1339574923512; Wed, 13 Jun 2012 01:08:43 -0700 (PDT) Original-Received: from [192.168.1.5] (kons-4d03f6ed.pool.mediaWays.net. [77.3.246.237]) by mx.google.com with ESMTPS id o4sm1725576bkv.15.2012.06.13.01.08.42 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 13 Jun 2012 01:08:43 -0700 (PDT) X-Mailer: Apple Mail (2.1278) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.214.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:150914 Archived-At: Hi, I have been using Emacs and git for a while now. It took a bit of = tweaking to get it to work right on Windows, but worked really well = after that. Now the problem is, I now have a repository hosted on Github, which = requires authentication. 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. This happens with eshell, shell and magit on Windows only. Here is the relevant section of my .emacs file: (when (eq system-type 'windows-nt) (setq magit-git-executable "C:/Program Files (x86)/Git/bin/git.exe") ;; so git opens emacs if invoked from emacs (setenv "EDITOR" "C:/PROGRA~2/emacs/bin/emacs.exe") ;; so eshell uses git.exe instead of git.cmd, which is achingly slow (setenv "PATH" (concat "C:\\Program Files (x86)\\Git\\bin;" (getenv = "PATH"))) ;; so shell finds all the msys binaries (setenv "PATH" (concat "C:\\MinGW\\msys\\1.0\\bin;" (getenv "PATH"))) ;; so shell uses the MinGW bash shell (setq explicit-shell-file-name "C:/MinGW/msys/1.0/bin/bash") ;; so emacs finds the vital binaries like diff.exe (add-to-list 'exec-path "C:/MinGW/msys/1.0/bin")) Any pointers on how to debug this would be greatly appreciated. Kind regards, Bastian=