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.