From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stephen Leake Newsgroups: gmane.emacs.devel Subject: very strange error from git under emacs Date: Sun, 02 Aug 2015 15:16:44 -0500 Message-ID: <86si81h2dv.fsf@stephe-leake.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1438546664 8660 80.91.229.3 (2 Aug 2015 20:17:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 2 Aug 2015 20:17:44 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Aug 02 22:17:36 2015 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 1ZLzhP-0002E2-IS for ged-emacs-devel@m.gmane.org; Sun, 02 Aug 2015 22:17:35 +0200 Original-Received: from localhost ([::1]:56753 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZLzhO-0003O9-LZ for ged-emacs-devel@m.gmane.org; Sun, 02 Aug 2015 16:17:34 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:59112) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZLzgy-00033D-G6 for emacs-devel@gnu.org; Sun, 02 Aug 2015 16:17:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZLzgu-0001mU-Ft for emacs-devel@gnu.org; Sun, 02 Aug 2015 16:17:08 -0400 Original-Received: from gproxy6-pub.mail.unifiedlayer.com ([67.222.39.168]:51306) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1ZLzgu-0001ks-9p for emacs-devel@gnu.org; Sun, 02 Aug 2015 16:17:04 -0400 Original-Received: (qmail 21001 invoked by uid 0); 2 Aug 2015 20:16:58 -0000 Original-Received: from unknown (HELO cmgw4) (10.0.90.85) by gproxy6.mail.unifiedlayer.com with SMTP; 2 Aug 2015 20:16:58 -0000 Original-Received: from host114.hostmonster.com ([74.220.207.114]) by cmgw4 with id zwGt1q00C2UdiVW01wGwE0; Sun, 02 Aug 2015 14:16:58 -0600 X-Authority-Analysis: v=2.1 cv=OJm0g0qB c=1 sm=1 tr=0 a=CQdxDb2CKd3SRg4I0/XZPQ==:117 a=CQdxDb2CKd3SRg4I0/XZPQ==:17 a=DsvgjBjRAAAA:8 a=f5113yIGAAAA:8 a=9i_RQKNPAAAA:8 a=y7kgw_RnJtkA:10 a=hEr_IkYJT6EA:10 a=x_XPkuGwIRMA:10 a=uRRa74qj2VoA:10 a=EtVHZasRCs4nk41C0ZUA:9 Original-Received: from [76.218.37.33] (port=62302 helo=TAKVER2) by host114.hostmonster.com with esmtpa (Exim 4.84) (envelope-from ) id 1ZLzgj-0000F5-1Y for emacs-devel@gnu.org; Sun, 02 Aug 2015 14:16:53 -0600 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (windows-nt) X-Identified-User: {2442:host114.hostmonster.com:stephele:stephe-leake.org} {sentby:smtp auth 76.218.37.33 authed with stephen_leake@stephe-leake.org} X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 67.222.39.168 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:188303 Archived-At: I'm running git under Emacs, via the DVC package. I'm getting a very strange error, but only for one git command (at least so far): from 'git stash save': fatal: Unable to create '/Projects/emacs/master/c:/Projects/emacs/master/.git/index.stash.1888.lock': No such file or directory Cannot save the untracked files Apparently the c: is confusing git. I can't figure out where it is comming from. I'm running on Cygwin git under Windows 8; this problem did not appear on Windows 7 (with an older Cygwin). It happens with Emacs master and Emacs 24.3. The command works fine in a Cygwin bash shell. In Emacs master I'm using 'make-process' to spawn git directly, capturing stdout in a buffer, and stderr in a separate buffer via a pipe-process. In Emacs 24.3 I'm using `call-process' to spawn Cygwin sh, which then runs git, using shell pipe redirection to capture stderr in a file. Has anyone seen anything like this? I can't figure out what is different between the Cygwin bash environment when running that in a comint buffer under Emacs, and the Cygwin sh environment in Emacs 24.3, or the direct spawn of git in Emacs 25. Running 'git stash save' from a Windows cmd.exe shell, with Cygwin bin in path, works fine. I first tried that without Cygwin git in path; apparently git spawns a shell to do stuff for this command. I'll also ask on the git mailing list; maybe they can explain why 'stash save' works differently from other git commands, or how it builds that filename. -- -- Stephe