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
Johannes Schindelin <johannes.schindelin@gmx.de>
Date
Aug 3, 2007, 16:46 UTC
Message-ID
<Pine.LNX.4.64.0708031649480.14781@racer.site>
In-Reply-To
<46B34B0D.6030106@trolltech.com>
Hi,
On Fri, 3 Aug 2007, Marius Storm-Olsen wrote:
Show 11 quoted lines
> 1) msys.bat still kills the previous window
>    msys.bat needs to change from
> :startsh
> start sh --login -i
> exit
> 
>    to just
> :startsh
> sh --login -i
> 
> (start <cmd> opens a new CMD window, and exit kills the current one)
Done.
Show 9 quoted lines
> 2) If $HOME is set to the normal home directory of the user (which I
> have, but I doubt it's common)
>       C:\Documents and Settings\<username>
>    then you'll have problems with spaces in path, so the
>       make install
>    actually fails. So, next time you start msys.bat, it will try to do
> the installation step again. I don't think we have to care about that
> right now. The current setup work fine for now. I'll play around a bit
> with it, and we'll see.

I agree, it is much saner to install it to /bin. That should make creating an installer for Git (the compiled one) easier, too.

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

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

New installer is available and tagged 0.2.

Ciao, Dscho

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.

Previous: Marius Storm-OlsenNext: Marius Storm-Olsen
Message 17 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.