Re: Mac OSX, git and mounted drives from linux

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]