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

Re: Git on MSys (or how to make it easy for Windows users to compile git)

From
Marius Storm-Olsen <marius@trolltech.com>
Date
Aug 3, 2007, 17:53 UTC
Message-ID
<46B36B7F.8010008@trolltech.com>
In-Reply-To
<Pine.LNX.4.64.0708031649480.14781@racer.site>
Johannes Schindelin wrote:
> On Fri, 3 Aug 2007, Marius Storm-Olsen wrote:
>> 1) msys.bat still kills the previous window
>> (start <cmd> opens a new CMD window, and exit kills the current one)
> Done.
Works nicely now.
Show 7 quoted lines
>> 2) If $HOME is set to the normal home directory of the user (which I
>> have, but I doubt it's common)
>>    then you'll have problems with spaces in path, so the
>>       make install
> 
> I agree, it is much saner to install it to /bin.  That should make 
> creating an installer for Git (the compiled one) easier, too.
Perfect! All neatly packaged in c:\MSysGit\bin now :-)
Show 7 quoted lines
>> 3) When "Setting up git" the second time, it feels like the whole thing
>> is hanging; have let it run for ~5min now without anything happening.
>> Not sure what's going on here. It looks like git.exe was ran with any
>> options, but that should not consume 100% CPU.. Hmm
> 
> Yep.  I did not test the initial phase, and there is a serious bug in 
> setup_git_directory_gently() in origin/devel.  I fixed that.
Yup, work now.
Show 12 quoted lines
>> 4) When using the install, I get
>> marius@STORM /git
>> $ git init
>> warning: templates not found C:/msysGit/share/git-core/templates/
>> Initialized empty Git repository in .git/
>>
>> Probably due to the "Setting up git" step not completing.
> 
> That is expected.  Hooks are activated by chmod'ing them to executable.  
> AFAIK this concept is thoroughly broken by Windows.  So I do not even 
> attempt to install the templates; otherwise all hooks would be blindly 
> activated (and you do not want that, trust me).

Actually, the MinGW build uses NOEXECTEMPL to set a '.noexec' postfix to the template files, so they are not executed, even with Windows brokeness. ;-) So, you can safely copy them into msysgit\shared\git-core\templates.

> P.S.: I also uploaded the script I created to make the installer.  It
> assumes that you installed 7zip to C:\Program Files\7-Zip but is
> trivial to adapt to your setup.

Thnx! I guess I should become a member of the project then, so I can upload packages when needed :-) (I already have a code.google.com account 'mstormo', so you can add that user)

Later! -- .marius

Previous: Johannes SchindelinNext: Mike Pape
Message 18 of 53 in “Git on MSys (or how to make it easy for Windows users to compile git)”
  1. Johannes SchindelinAug 2, 2007
  2. Dmitry KakurinAug 3, 2007
  3. Marius Storm-OlsenAug 3, 2007
  4. Dmitry KakurinAug 3, 2007
  5. Johannes SchindelinAug 3, 2007
  6. Dmitry KakurinAug 3, 2007
  7. Johannes SchindelinAug 3, 2007
  8. Johannes SchindelinAug 3, 2007
  9. Marius Storm-OlsenAug 3, 2007
  10. Johannes SchindelinAug 3, 2007
  11. Johannes SchindelinAug 3, 2007
  12. Marius Storm-OlsenAug 3, 2007
  13. Johannes SchindelinAug 3, 2007
  14. Marius Storm-OlsenAug 3, 2007
  15. Johannes SchindelinAug 3, 2007
  16. Marius Storm-OlsenAug 3, 2007
  17. Johannes SchindelinAug 3, 2007
  18. Marius Storm-OlsenAug 3, 2007
  19. Mike PapeAug 3, 2007
  20. Marius Storm-OlsenAug 3, 2007
  21. Johannes SchindelinAug 3, 2007
  22. Marius Storm-OlsenAug 3, 2007
  23. Mike PapeAug 3, 2007
  24. Marius Storm-OlsenAug 3, 2007
  25. Johannes SchindelinAug 3, 2007
  26. Johannes SchindelinAug 3, 2007
  27. Johannes SchindelinAug 3, 2007
  28. Dmitry KakurinAug 3, 2007
  29. Johannes SchindelinAug 3, 2007
  30. Torgil SvenssonAug 4, 2007
  31. Johannes SchindelinAug 4, 2007
  32. Torgil SvenssonAug 5, 2007
  33. Johannes SchindelinAug 6, 2007
  34. Marius Storm-OlsenAug 6, 2007
  35. Johannes SchindelinAug 6, 2007
  36. Marius Storm-OlsenAug 6, 2007
  37. Alex RiesenAug 9, 2007
  38. Johannes SchindelinAug 9, 2007
  39. Alex RiesenAug 9, 2007
  40. Torgil SvenssonAug 6, 2007
  41. Johannes SchindelinAug 6, 2007
  42. Marius Storm-OlsenAug 3, 2007
  43. Marius Storm-OlsenAug 3, 2007
  44. Nguyen Thai Ngoc DuyAug 3, 2007
  45. Marius Storm-OlsenAug 3, 2007
  46. Nguyen Thai Ngoc DuyAug 3, 2007
  47. Marius Storm-OlsenAug 3, 2007
  48. Nguyen Thai Ngoc DuyAug 3, 2007
  49. Marius Storm-OlsenAug 3, 2007
  50. Johannes SchindelinAug 3, 2007
  51. Nguyen Thai Ngoc DuyAug 3, 2007
  52. Johannes SchindelinAug 3, 2007
  53. Matthieu MoyAug 3, 2007

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.