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

Re: Can git be tweaked to work cross-platform, on FAT32?

From
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Dec 16, 2006, 11:37 UTC
Message-ID
<Pine.LNX.4.63.0612161227510.3635@wbgn013.biozentrum.uni-wuerzburg.de>
In-Reply-To
<0ML25U-1GvWC81sjR-0001UB@mrelayeu.kundenserver.de>
Hi,
On Sat, 16 Dec 2006, Florian v. Savigny wrote:
Show 5 quoted lines
> DO your answers imply that it is NOT possible (by "possible", I mean of 
> course: possible without re-programming the source code ;-)) to compile 
> git in a way that would enable it to work DIRECTLY with a local 
> repository on FAT32 from both Windows and Linux (or, perhaps more 
> simple: to work directly with a repository on FAT32 under Linux)?
My answer was not so clear...
Question: Is it possible to use git on a FAT32 filesystem?
Answer: Yes.
Question: Is it possible to access such a repository from both Linux and 
Windows?
Answer: Yes.
Question: Is there anything that could cause problems?
Answer: Yes. The working directory is a problem.
	- Symlinks for example. Don't use them.
	- Umlauts: don't use them.
	- The index has to be updated, since the stat information is 
	  unlikely to match. A simple "git status" should suffice, though.
	- Permissions: the permission handling of Linux and Windows are
	  quite different. If you initialize the repository with Cygwin,
	  it automatically sets core.filemode=false, if you initalize(d) 
	  with Linux, you have to adjust manually.
Question: Are there other shortcomings to this approach?
Answer: Definitely. Most are only annoying (like the performance of FAT32, 
which literally sucks), but some are different: for example, if you 
compile things in the working directory, you will be unhappy.
Show 6 quoted lines
> 3. ad Johannes: This does sound quite simple and straightforward. If I
>    got it right, it would involve having one repository on a, say,
>    ext2 partition to work with under Linux, and one on a FAT32
>    partition to work with under Windows, and syncing the two after
>    booting (fetching from FAT32) and before shutting down (pushing to
>    FAT32) Linux.
This is how I'd do it.
>    It is quite interesting, BTW, that git can /sync/ with a repository
>    on FAT32 under Linux, but not work with it.
You can. But I wouldn't. I like to keep separations clean and obvious.
Ciao,
Previous: Florian v. SavignyNext: Martin Langhoff
Message 5 of 15 in “Can git be tweaked to work cross-platform, on FAT32?”
  1. Florian v. SavignyDec 13, 2006
  2. Johannes SchindelinDec 13, 2006
  3. Martin LanghoffDec 14, 2006
  4. Florian v. SavignyDec 16, 2006
  5. Johannes SchindelinDec 16, 2006
  6. Martin LanghoffDec 17, 2006
  7. Stefano SpinucciDec 17, 2006
  8. Johannes SchindelinDec 17, 2006
  9. Juergen RuehleDec 17, 2006
  10. Johannes SchindelinDec 17, 2006
  11. Stefano SpinucciDec 18, 2006
  12. Johannes SchindelinDec 18, 2006
  13. Juergen RuehleDec 18, 2006
  14. Dan NicholsonDec 19, 2006
  15. David LangDec 19, 2006

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.