all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stephen Leake <stephen_leake@stephe-leake.org>
To: emacs-devel@gnu.org
Subject: very strange error from git under emacs
Date: Sun, 02 Aug 2015 15:16:44 -0500	[thread overview]
Message-ID: <86si81h2dv.fsf@stephe-leake.org> (raw)

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



             reply	other threads:[~2015-08-02 20:16 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-02 20:16 Stephen Leake [this message]
2015-08-03  8:27 ` very strange error from git under emacs Steinar Bang
2015-08-04 15:28 ` Stephen Leake

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=86si81h2dv.fsf@stephe-leake.org \
    --to=stephen_leake@stephe-leake.org \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.