From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marius Storm-Olsen Subject: Re: Git on MSys (or how to make it easy for Windows users to compile git) Date: Fri, 03 Aug 2007 19:53:03 +0200 Message-ID: <46B36B7F.8010008@trolltech.com> References: <460B6BF8541C4D9B916F02A12E0576F5@ntdev.corp.microsoft.com> <46B2D4D9.4020103@trolltech.com> <46B328EA.4030309@trolltech.com> <46B32C8D.4060804@trolltech.com> <46B34B0D.6030106@trolltech.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigA0D806692825AF04DBC4EB3C" Cc: Dmitry Kakurin , git@vger.kernel.org, Mike Pape To: Johannes Schindelin X-From: git-owner@vger.kernel.org Fri Aug 03 19:53:28 2007 Return-path: Envelope-to: gcvg-git@gmane.org Received: from vger.kernel.org ([209.132.176.167]) by lo.gmane.org with esmtp (Exim 4.50) id 1IH1L4-0001r2-Ji for gcvg-git@gmane.org; Fri, 03 Aug 2007 19:53:26 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932556AbXHCRxY (ORCPT ); Fri, 3 Aug 2007 13:53:24 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932531AbXHCRxW (ORCPT ); Fri, 3 Aug 2007 13:53:22 -0400 Received: from esparsett.troll.no ([62.70.27.18]:33922 "EHLO esparsett.troll.no" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932484AbXHCRxS (ORCPT ); Fri, 3 Aug 2007 13:53:18 -0400 Received: from esparsett.troll.no (localhost [127.0.0.1]) by localhost (Postfix) with SMTP id 7389874227; Fri, 3 Aug 2007 19:53:14 +0200 (CEST) Received: from [172.20.1.78] (unknown [172.20.1.78]) by esparsett.troll.no (Postfix) with ESMTP id CA16E74222; Fri, 3 Aug 2007 19:53:13 +0200 (CEST) User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.5) Gecko/20070716 Thunderbird/2.0.0.5 Mnenhy/0.7.5.666 In-Reply-To: X-Enigmail-Version: 0.95.2 OpenPGP: id=34EB4437 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAFVBMVEXU1NTAwMABAQGsrKyE hIQwMDAEBAS8hGUfAAACQUlEQVQ4jV2TS47cMAxEKSDZW1CfwMB4PYLkrKchsveJRR2gEen+R0hR 9vziBmahhyqSRQ4NfF1FmIv3dH4usNAGoFprBVguQJmZ1nX0XiHgEukTCK3TairiZeXcVGzmZIoU 3738pehdVbiU9KFgMQWeZ1fpHZDfRS4rPb3eQVaZChGx4ikt5GDkAZQ2KKohzjklno4+iJpVhxka ZjSpasJ4gdGaEQMWTMjRa5uTqza0XDJjzhIdzGTMrqoopimoIPCKZtVOq265MAXpMLXycmVl2Y8C oE1FkT/faKauOjYoHJyOxHfvixjowvI0xZJsKykubgLYzuJMdBO+L86TjxfQ9hz9jpSudbnXXzRm tor5i3MUONpOfARAhlWbzWF7OhP2eSeEW9HUBNiHOxUM8HLWHhUAj3NZNsdqRZpNA+DJ+XlX+Qc9 Z4ZjHX8LRUzgTBBef84NQoCMOcS0+BMsj3klbTzRri03ugXr9em1GfgzDAyEn4J3fvFI5YwdTrYu 1ntAY1h5ysM2OMGm+cBOocCXHisAHu2PagnLghoG2krz8bzsA4fj7KxCGk+63jt+DDCtYjbFNkHD nRwpRqsQYx5WYzsbm/eBfn0I4TbOGvMWqhQAiEDzNs4apumCI0x2OyHtY7uAlZff/sanbH9+AGT1 KOEmUlJISdYPgEgehw+cTZEf6xeFyoEjCPgv+A62KhW3EOy9PL7WmCBMRWmfYN0OqW9krzl/Ay91 75HMqfDtP8UFckFUX2rwrm/kTVB2gH+hdu4avZVCuAAAAABJRU5ErkJggg== Sender: git-owner@vger.kernel.org Precedence: bulk X-Mailing-List: git@vger.kernel.org Archived-At: This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigA0D806692825AF04DBC4EB3C Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Johannes Schindelin wrote: > On Fri, 3 Aug 2007, Marius Storm-Olsen wrote: >> 1) msys.bat still kills the previous window >> (start opens a new CMD window, and exit kills the current one) > Done. Works nicely now. >> 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 >=20 > I agree, it is much saner to install it to /bin. That should make=20 > creating an installer for Git (the compiled one) easier, too. Perfect! All neatly packaged in c:\MSysGit\bin now :-) >> 3) When "Setting up git" the second time, it feels like the whole thin= g >> 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 >=20 > Yep. I did not test the initial phase, and there is a serious bug in=20 > setup_git_directory_gently() in origin/devel. I fixed that. Yup, work now. >> 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. >=20 > That is expected. Hooks are activated by chmod'ing them to executable.= =20 > AFAIK this concept is thoroughly broken by Windows. So I do not even=20 > 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! -- =2Emarius --------------enigA0D806692825AF04DBC4EB3C Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (MingW32) iD8DBQFGs2uIKzzXl/njVP8RAjuhAJ4sFzXd83/TIg4zsbKMRghetVLkSQCgqhaX WD6mKBA2Pl75XomdWBbrrxg= =arbQ -----END PGP SIGNATURE----- --------------enigA0D806692825AF04DBC4EB3C--