Git development
 help / color / mirror / Atom feed
* git and filesystem problems (ext3 and vfat)
@ 2008-10-16 16:03 Ian Brown
  2008-10-16 16:17 ` Michael J Gruber
  2008-10-16 16:22 ` David Tweed
  0 siblings, 2 replies; 5+ messages in thread
From: Ian Brown @ 2008-10-16 16:03 UTC (permalink / raw)
  To: git

Hello, ]

 I have a diskOnKey which has a vfat filesystem.
I ran there:
git clone git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-2.6.git
the I copied all the wireless-2.6 folder to an ext3 partition.
There I ran git diff.

I get many messages like these (probably on all files of the repository):

diff --git a/COPYING b/COPYING
deleted file mode 100644
index ca442d3..0000000
--- a/COPYING
+++ /dev/null
@@ -1,356 +0,0 @@
-

and then all the lines of the file with "-" in the beginning, as if
they are empty.

Why is it so ?
Is there any way to overcome it ?
Must I run "git clone" on an ext3 DiskOnKey only ?

Regards,
Ian

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: git and filesystem problems (ext3 and vfat)
  2008-10-16 16:03 git and filesystem problems (ext3 and vfat) Ian Brown
@ 2008-10-16 16:17 ` Michael J Gruber
  2008-10-16 16:23   ` Ian Brown
  2008-10-16 16:22 ` David Tweed
  1 sibling, 1 reply; 5+ messages in thread
From: Michael J Gruber @ 2008-10-16 16:17 UTC (permalink / raw)
  To: Ian Brown; +Cc: git

Ian Brown venit, vidit, dixit 16.10.2008 18:03:
> Hello, ]
> 
>  I have a diskOnKey which has a vfat filesystem.
> I ran there:
> git clone git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-2.6.git
> the I copied all the wireless-2.6 folder to an ext3 partition.

How did you copy it?

> There I ran git diff.
> 
> I get many messages like these (probably on all files of the repository):
> 
> diff --git a/COPYING b/COPYING
> deleted file mode 100644
> index ca442d3..0000000
> --- a/COPYING
> +++ /dev/null
> @@ -1,356 +0,0 @@
> -
> 
> and then all the lines of the file with "-" in the beginning, as if
> they are empty.
> 
> Why is it so ?
> Is there any way to overcome it ?
> Must I run "git clone" on an ext3 DiskOnKey only ?

git diff gives you the difference between the index and the work tree.
The index is the one you copied from vfat; git doesn't see the files on
the ext3 work tree. Do you see them with ls?

One by one I would try

git status
git reset
git reset --hard

in order to reconcile your index with your checkout. You probably need
the last one.

Michael

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: git and filesystem problems (ext3 and vfat)
  2008-10-16 16:03 git and filesystem problems (ext3 and vfat) Ian Brown
  2008-10-16 16:17 ` Michael J Gruber
@ 2008-10-16 16:22 ` David Tweed
  1 sibling, 0 replies; 5+ messages in thread
From: David Tweed @ 2008-10-16 16:22 UTC (permalink / raw)
  To: Ian Brown; +Cc: git

On Thu, Oct 16, 2008 at 5:03 PM, Ian Brown <ianbrn@gmail.com> wrote:
> Hello, ]
>
>  I have a diskOnKey which has a vfat filesystem.
> I ran there:
> git clone git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-2.6.git
> the I copied all the wireless-2.6 folder to an ext3 partition.
> There I ran git diff.
>
> I get many messages like these (probably on all files of the repository):
>
> diff --git a/COPYING b/COPYING
> deleted file mode 100644
> index ca442d3..0000000
> --- a/COPYING
> +++ /dev/null
> @@ -1,356 +0,0 @@
> -
>
> and then all the lines of the file with "-" in the beginning, as if
> they are empty.

The first question is what do the directories on the vfat and ext3
disks look like? Are the files like COPYING present in both directory
trees (so git is wrong at that point of the diff) or has something
gone wrong earlier?

> Why is it so ?
> Is there any way to overcome it ?
> Must I run "git clone" on an ext3 DiskOnKey only ?

I have certainly cloned onto a vfat partition with no problems,
although I've always done it with a --bare clone because a lot of my
repos have had case sensitive filenames and I've had some problems
with the "git dirent reading code reads back different case file names
than it wrote out and gets confused". If you're only transporting the
repo on the stick, I'd definitely do it via "git clone --bare" just to
reduce the potential for problems.

-- 
cheers, dave tweed__________________________
david.tweed@gmail.com
Rm 124, School of Systems Engineering, University of Reading.
"while having code so boring anyone can maintain it, use Python." --
attempted insult seen on slashdot

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: git and filesystem problems (ext3 and vfat)
  2008-10-16 16:17 ` Michael J Gruber
@ 2008-10-16 16:23   ` Ian Brown
  2008-10-16 16:33     ` David Tweed
  0 siblings, 1 reply; 5+ messages in thread
From: Ian Brown @ 2008-10-16 16:23 UTC (permalink / raw)
  To: Michael J Gruber; +Cc: git

Hello,
Thanks for you quick answer.

ls shows the files.

git status shows:
fatal: Not a git repository
Regards,
IB

On Thu, Oct 16, 2008 at 6:17 PM, Michael J Gruber
<git@drmicha.warpmail.net> wrote:
> Ian Brown venit, vidit, dixit 16.10.2008 18:03:
>> Hello, ]
>>
>>  I have a diskOnKey which has a vfat filesystem.
>> I ran there:
>> git clone git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-2.6.git
>> the I copied all the wireless-2.6 folder to an ext3 partition.
>
> How did you copy it?
>
>> There I ran git diff.
>>
>> I get many messages like these (probably on all files of the repository):
>>
>> diff --git a/COPYING b/COPYING
>> deleted file mode 100644
>> index ca442d3..0000000
>> --- a/COPYING
>> +++ /dev/null
>> @@ -1,356 +0,0 @@
>> -
>>
>> and then all the lines of the file with "-" in the beginning, as if
>> they are empty.
>>
>> Why is it so ?
>> Is there any way to overcome it ?
>> Must I run "git clone" on an ext3 DiskOnKey only ?
>
> git diff gives you the difference between the index and the work tree.
> The index is the one you copied from vfat; git doesn't see the files on
> the ext3 work tree. Do you see them with ls?
>
> One by one I would try
>
> git status
> git reset
> git reset --hard
>
> in order to reconcile your index with your checkout. You probably need
> the last one.
>
> Michael
>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: git and filesystem problems (ext3 and vfat)
  2008-10-16 16:23   ` Ian Brown
@ 2008-10-16 16:33     ` David Tweed
  0 siblings, 0 replies; 5+ messages in thread
From: David Tweed @ 2008-10-16 16:33 UTC (permalink / raw)
  To: Ian Brown; +Cc: Michael J Gruber, git

On Thu, Oct 16, 2008 at 5:23 PM, Ian Brown <ianbrn@gmail.com> wrote:
> Hello,
> Thanks for you quick answer.
>
> ls shows the files.

I'm assuming this is on both the vfat and ext3 disks? All the
filenames' cases are correct?

> git status shows:
> fatal: Not a git repository
> Regards,
> IB

The error message unfortunately really means "git couldn't find
_everything_ needed to be a repository" without saying what precisely
it had problems finding. Educated guess: Have a look in the .git
directory on each disk. Is there a file called 'HEAD' or has its case
been changed?

-- 
cheers, dave tweed__________________________
david.tweed@gmail.com
Rm 124, School of Systems Engineering, University of Reading.
"while having code so boring anyone can maintain it, use Python." --
attempted insult seen on slashdot

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-10-16 16:34 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-16 16:03 git and filesystem problems (ext3 and vfat) Ian Brown
2008-10-16 16:17 ` Michael J Gruber
2008-10-16 16:23   ` Ian Brown
2008-10-16 16:33     ` David Tweed
2008-10-16 16:22 ` David Tweed

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox