git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Copying Git repository from Linux to Windows.

From
VKviresh kumar <viresh.kumar@st.com>
Date
Jun 15, 2011, 12:02 UTC
Message-ID
<4DF89F56.3060200@st.com>
In-Reply-To
<BANLkTik+oUb1QpVTwJfB30_8FsW=4ZVTxA@mail.gmail.com>
On 06/15/2011 04:56 PM, Erik Faye-Lund wrote:
Show 11 quoted lines
> On Wed, Jun 15, 2011 at 1:04 PM, viresh kumar <viresh.kumar@st.com> wrote:
>> On 06/15/2011 04:10 PM, Jakub Narebski wrote:
> Sounds like you should try "git config core.filemode false":
> 
> "core.fileMode:
>      If false, the executable bit differences between the index and
> the working copy are ignored; useful on broken filesystems like FAT"
> 
> (from from http://kernel.org/pub/software/scm/git/docs/git-config.html)
> .
> 
On 06/15/2011 04:59 PM, Jakub Narebski wrote:
Show 13 quoted lines
> On Wed, 15 June 2011, viresh kumar wrote:
>> On 06/15/2011 04:10 PM, Jakub Narebski wrote:
>>> viresh kumar <viresh.kumar@st.com> writes:
> Ah. This is caused by the fact that FAT doesn't store executable
> permission.
> 
> So beside setting `core.symlinks` to false, you would have also set
> `core.filemode` to false (and perhaps also `core.ignorecase` to true).
> 
> You might also want to set `core.ignoreStat` to true to try to increase
> performace.
> 
> P.S. git-bundle ddidn't work?
didn't tried that. :(
> 

Guys, thanks for your inputs. core.filemode was new to me. I tried to resolved issue in some other way. I have tarred kernel before copying to memory stick. And after untarring kernel on windows, file permission are not changed for all files with permission 644 originally.

There are some files in kernel whose permissions are 755 and they are converted to 644. And are shown in git status as _modified_.

I got rid of them with core.filemode as false, but there is one more issue, as pointed out by Andreas. There are few files in kernel with same file name but in different _cases_ (one in caps and another in small.) and so i am getting issues with these now.

And don't have any idea how to get rid of that? And why does kernel have such file names at all?
-- 
viresh
Previous: Erik Faye-LundNext: Andreas Ericsson
Message 6 of 17 in “Copying Git repository from Linux to Windows.”
  1. viresh kumarJun 15, 2011
  2. Andreas EricssonJun 15, 2011
  3. Jakub NarebskiJun 15, 2011
  4. viresh kumarJun 15, 2011
  5. Erik Faye-LundJun 15, 2011
  6. viresh kumarJun 15, 2011
  7. Andreas EricssonJun 15, 2011
  8. viresh kumarJun 16, 2011
  9. Philippe VaucherJun 16, 2011
  10. viresh kumarJun 16, 2011
  11. Johannes SixtJun 16, 2011
  12. viresh kumarJun 16, 2011
  13. Jakub NarebskiJun 16, 2011
  14. viresh kumarJun 17, 2011
  15. Jakub NarebskiJun 15, 2011
  16. Phil HordJun 20, 2011
  17. Jakub NarebskiJun 15, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.