Re: Git on MSys (or how to make it easy for Windows users to compile git)
From: Marius Storm-Olsen <hidden>
Date: 2016-06-15 22:43:26
Johannes Schindelin wrote:
On Fri, 3 Aug 2007, Marius Storm-Olsen wrote:quoted
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.
quoted
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 installI 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 :-)
quoted
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.. HmmYep. 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.
quoted
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
Attachments
- signature.asc [application/pgp-signature] 187 bytes