From: Jacob Kaplan-Moss <jacob@jacobian.org>
To: Jay Soffian <jaysoffian@gmail.com>
Cc: Junio C Hamano <gitster@pobox.com>, git@vger.kernel.org
Subject: Re: git-stash fails on OSX 10.5
Date: Mon, 13 Apr 2009 13:13:05 -0500 [thread overview]
Message-ID: <be4ebbe10904131113q5b221fe9kf7e0a0fe3bb7fdc6@mail.gmail.com> (raw)
In-Reply-To: <76718490904131057k2801a62bn14825b055b345dfe@mail.gmail.com>
Hey Jay --
Thanks for the questions; they helped me figure out a bit more:
On Mon, Apr 13, 2009 at 12:57 PM, Jay Soffian <jaysoffian@gmail.com> wrote:
> 3) Anything unusual for OS X? e.g., Are you using FileVault? Are you
> using a filesystem other than case-insensitive HFS+? Is your cp
> command something other than /bin/cp?
The filesystem is case-*sensitive* HFS+:
$ diskutil info disk0s2
...
File System: Case-sensitive Journaled HFS+
... and cp is GNU cp, not Apple's:
$ which cp
/usr/local/bin/cp
Looks like if I use Apple's cp then stash works again:
$ mv /usr/local/bin/cp /usr/local/bin/cp~
$ which cp
/bin/cp
$ git stash
Saved working directory and index state "WIP on master: 504b9bd
Updated README."HEAD is now at 504b9bd Updated README.
(To restore them type "git stash apply")
So clearly there's some interaction between git-stash,
case-sensitivity, and GNU cp. Given that GNU cp works correctly when I
do it by hand (i.e. "cp -v /Users/jacob/Projects/uri/.git/index /tmp/"
works), I suspect that git-stash is getting the case wrong somewhere
and Apple's cp is automatically correcting for that error.
That's my theory, anyway; my bash-fu isn't that good, so I've not been
able to figure out a way to patch git-stash to work around the
problem. I've got a strange setup, I guess, so I understand if this is
a "just don't do that" kind of situation.
Thanks!
Jacob
prev parent reply other threads:[~2009-04-13 18:15 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-04-10 16:44 git-stash fails on OSX 10.5 Jacob Kaplan-Moss
2009-04-10 17:26 ` Junio C Hamano
2009-04-10 18:14 ` Jacob Kaplan-Moss
2009-04-13 17:57 ` Jay Soffian
2009-04-13 18:13 ` Jacob Kaplan-Moss [this message]
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=be4ebbe10904131113q5b221fe9kf7e0a0fe3bb7fdc6@mail.gmail.com \
--to=jacob@jacobian.org \
--cc=git@vger.kernel.org \
--cc=gitster@pobox.com \
--cc=jaysoffian@gmail.com \
/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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).