git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* Re: Mac OSX, git and mounted drives from linux
       [not found] <AANLkTi=eErGTJ=ky98+2p19S15AzNx+bdQSc_4A+SWih@mail.gmail.com>
@ 2011-03-29  7:19 ` Anders Hovmöller
  0 siblings, 0 replies; only message in thread
From: Anders Hovmöller @ 2011-03-29  7:19 UTC (permalink / raw
  To: git

Hi,

I think I've found a bug with git. For me it reproduces 100% of the
time. Basically "git diff-index HEAD" seems to be broken in some
strange way in my situation.

Prerequisites:
- Running git from a mac, latest update of snow leopard
- mounted a volume that exists on a linux box
- perform "git diff-index HEAD" on a repository

Notice also that the output from diff-index changes once in a while
when running other git commands. I couldn't find any reasonable
pattern. If I run diff-index from the linux box itself just after
running it on the mac it outputs the same garbage. If I then pull and
then rerun diff-index everything is fine until I run diff-index from
the mac again.
The reason always running the tools from the linux box is not a
reasonable workaround is that GitX uses diff-index :P
I have the exact same git version on both machines. I also checked
that they are correctly time synched.
The full log of what I did to reproduce it (my prompts are prefixed
with ------ for readability):


------ andersh-ws:andersh andersh$ pwd
/Volumes/andersh
------ andersh-ws:andersh andersh$ git clone
git://github.com/boxed/gitx.git test
Cloning into test...
remote: Counting objects: 8419, done.
remote: Compressing objects: 100% (3014/3014), done.
remote: Total 8419 (delta 5609), reused 7767 (delta 5142)
Receiving objects: 100% (8419/8419), 8.91 MiB | 1.57 MiB/s, done.
Resolving deltas: 100% (5609/5609), done.
------ andersh-ws:andersh andersh$ cd test
------ andersh-ws:test andersh$ git diff-index HEAD
:100644 100644 b14754a0580c4195b1b48840f33b095f01fa3bac
0000000000000000000000000000000000000000 M
Images/AddRemoteBranchFireworksTemplate.png
:100644 100644 1671ac95aab83479c7b7bfe5d4df26db08618341
0000000000000000000000000000000000000000 M PBGitHistoryView.xib
:100644 100644 8e95c567aebc1ca1fb5e5b2fc1f5824364f19f30
0000000000000000000000000000000000000000 M
html/lib/syntaxhighlighter/compass/shThemeDjango.scss
:100644 100644 58942dc8e1a48eeced0175d3b87b96bcf918c622
0000000000000000000000000000000000000000 M speed_test/array.m
------ andersh-ws:test andersh$ git status
# On branch master
nothing to commit (working directory clean)
------ andersh-ws:test andersh$ git diff-index HEAD
:100644 100644 b14754a0580c4195b1b48840f33b095f01fa3bac
0000000000000000000000000000000000000000 M
Images/AddRemoteBranchFireworksTemplate.png
:100644 100644 1671ac95aab83479c7b7bfe5d4df26db08618341
0000000000000000000000000000000000000000 M PBGitHistoryView.xib
------ andersh-ws:test andersh$ mount
/dev/disk0s2 on / (hfs, local, journaled)
devfs on /dev (devfs, local, nobrowse)
/dev/disk1s2 on /Volumes/Macintosh HD (hfs, local, journaled)
map -hosts on /net (autofs, nosuid, automounted, nobrowse)
map auto_home on /home (autofs, automounted, nobrowse)
/dev/disk2s2 on /Users/andersh (hfs, local, nodev, nosuid, journaled, nobrowse)
//andersh@somelinuxserver/andersh on /Volumes/andersh (smbfs, nodev,
nosuid, mounted by andersh)
------ andersh-ws:test andersh$ git diff
------ andersh-ws:test andersh$ git --version
git version 1.7.3.5

Hoping someone has an idea,
Anders

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-03-29  7:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <AANLkTi=eErGTJ=ky98+2p19S15AzNx+bdQSc_4A+SWih@mail.gmail.com>
2011-03-29  7:19 ` Mac OSX, git and mounted drives from linux Anders Hovmöller

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

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 read-only IMAP folder(s) and NNTP newsgroup(s).