git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* problem with file mode
@ 2009-06-08  9:09 Andrew Romanenco
  2009-06-08 12:30 ` Jeff King
  0 siblings, 1 reply; 6+ messages in thread
From: Andrew Romanenco @ 2009-06-08  9:09 UTC (permalink / raw)
  To: git

Hello

I have problem with cloning git repo

Both stations are ubuntu 8.10
And I have repo with text files on station A
When I do git clone to station B all files become executable 755
And git status show that all files are modified, diff shows mode change

could you help me with this issue?

thanks
Andrew

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

* Re: problem with file mode
  2009-06-08  9:09 problem with file mode Andrew Romanenco
@ 2009-06-08 12:30 ` Jeff King
  2009-06-08 13:49   ` Andrew Romanenco
  0 siblings, 1 reply; 6+ messages in thread
From: Jeff King @ 2009-06-08 12:30 UTC (permalink / raw)
  To: Andrew Romanenco; +Cc: git

On Mon, Jun 08, 2009 at 12:09:23PM +0300, Andrew Romanenco wrote:

> Both stations are ubuntu 8.10
> And I have repo with text files on station A
> When I do git clone to station B all files become executable 755
> And git status show that all files are modified, diff shows mode change

What filesystem is station B running? Is it something that actually has
a proper executable bit (i.e., not FAT or similar)?

-Peff

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

* Re: problem with file mode
  2009-06-08 12:30 ` Jeff King
@ 2009-06-08 13:49   ` Andrew Romanenco
  2009-06-08 13:57     ` Jeff King
  0 siblings, 1 reply; 6+ messages in thread
From: Andrew Romanenco @ 2009-06-08 13:49 UTC (permalink / raw)
  To: Jeff King; +Cc: git

true - B is Fat

On Mon, Jun 8, 2009 at 3:30 PM, Jeff King<peff@peff.net> wrote:
> On Mon, Jun 08, 2009 at 12:09:23PM +0300, Andrew Romanenco wrote:
>
>> Both stations are ubuntu 8.10
>> And I have repo with text files on station A
>> When I do git clone to station B all files become executable 755
>> And git status show that all files are modified, diff shows mode change
>
> What filesystem is station B running? Is it something that actually has
> a proper executable bit (i.e., not FAT or similar)?
>
> -Peff
>



-- 
Best regards,
Andrew Romanenco

        Software developer
        Microsoft Certified Professional (win2k)
        Microsoft Certified Database Administrator
        Sun Certified Java Programmer
        Sun Certified Web Component Developer
        Oracle Database 10g Administrator Certified Associate

        mailto:andrew@romanenco.com
        http://www.romanenco.com

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

* Re: problem with file mode
  2009-06-08 13:49   ` Andrew Romanenco
@ 2009-06-08 13:57     ` Jeff King
  2009-06-08 14:08       ` Andrew Romanenco
  2009-06-08 14:50       ` Johannes Sixt
  0 siblings, 2 replies; 6+ messages in thread
From: Jeff King @ 2009-06-08 13:57 UTC (permalink / raw)
  To: Andrew Romanenco; +Cc: git

On Mon, Jun 08, 2009 at 04:49:44PM +0300, Andrew Romanenco wrote:

> true - B is Fat

Then you probably want to:

  git config core.filemode false

on B. Though I thought we automagically tested whether the filesystem
supported executable bits when creating the repository. Did you create
the repository on a different filesystem and then move it to FAT, or did
you directly clone to FAT?

-Peff

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

* Re: problem with file mode
  2009-06-08 13:57     ` Jeff King
@ 2009-06-08 14:08       ` Andrew Romanenco
  2009-06-08 14:50       ` Johannes Sixt
  1 sibling, 0 replies; 6+ messages in thread
From: Andrew Romanenco @ 2009-06-08 14:08 UTC (permalink / raw)
  To: Jeff King; +Cc: git

I have create repo on ext3 and cloned it to fat

thak you for your help

On Mon, Jun 8, 2009 at 4:57 PM, Jeff King<peff@peff.net> wrote:
> On Mon, Jun 08, 2009 at 04:49:44PM +0300, Andrew Romanenco wrote:
>
>> true - B is Fat
>
> Then you probably want to:
>
>  git config core.filemode false
>
> on B. Though I thought we automagically tested whether the filesystem
> supported executable bits when creating the repository. Did you create
> the repository on a different filesystem and then move it to FAT, or did
> you directly clone to FAT?
>
> -Peff
>



-- 
Best regards,
Andrew Romanenco

        Software developer
        Microsoft Certified Professional (win2k)
        Microsoft Certified Database Administrator
        Sun Certified Java Programmer
        Sun Certified Web Component Developer
        Oracle Database 10g Administrator Certified Associate

        mailto:andrew@romanenco.com
        http://www.romanenco.com

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

* Re: problem with file mode
  2009-06-08 13:57     ` Jeff King
  2009-06-08 14:08       ` Andrew Romanenco
@ 2009-06-08 14:50       ` Johannes Sixt
  1 sibling, 0 replies; 6+ messages in thread
From: Johannes Sixt @ 2009-06-08 14:50 UTC (permalink / raw)
  To: Jeff King; +Cc: Andrew Romanenco, git

Jeff King schrieb:
> On Mon, Jun 08, 2009 at 04:49:44PM +0300, Andrew Romanenco wrote:
>> true - B is Fat
> 
> Then you probably want to:
> 
>   git config core.filemode false
> 
> on B. Though I thought we automagically tested whether the filesystem
> supported executable bits when creating the repository.

We do. Our test basically:

   lstat()
   chmod(st_mode ^ S_IXUSR)
   lstat()

but Linux (Andrew said he's on Ubuntu) keeps the mode bits that user-space
requested with chmod() in the cache long enough that the subsequent
lstat() call sees what it just requested. So, our test doesn't notice that
the x-bit is not written to the filesystem.

:-(

-- Hannes

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

end of thread, other threads:[~2009-06-08 14:50 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-08  9:09 problem with file mode Andrew Romanenco
2009-06-08 12:30 ` Jeff King
2009-06-08 13:49   ` Andrew Romanenco
2009-06-08 13:57     ` Jeff King
2009-06-08 14:08       ` Andrew Romanenco
2009-06-08 14:50       ` Johannes Sixt

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).