threads / discuss / 8054

GIT on Windows

Subject: GIT on Windows

## tl;dr

4 messages between May 9, 2007 and May 9, 2007.

replies: 3people: 3as markdown or json

Panagiotis Issaris· May 9, 2007, 12:29 UTC · lore
Hi,

As someone in the FFmpeg project asked about GIT's availability on other operating systems, and it was mentioned that Mercurial worked fine on Windows, I wanted to have a look whether it was already possible to run GIT on Windows.

I first had a go at getting it working on MSys/MinGW, but as no binaries appeared to be available and compilation wasn't trivial, I figured I'd take the easier path using CygWin. When looking for packages to resolve the GIT build dependencies, I noticed that a GIT package was already available from within the CygWin installer! :-)

I tried some basic stuff, creating a repository, adding files, committing, diffing and found out all this worked fine. I noticed that gitk also works fine.

Then I wanted to try the same on some real repository (meaning with more then the 10 commits my testrepository contained).

I tried cloning a repository of my own but this resulted in a crash:
git clone http://lumumba.uhasselt.be/takis/git/ffmpeg-pi.git/
...
walk 5c90e2f63a0d46c6f2ab6c30bdfe1e0212ca46ff
walk 77a6e87c60a59b9aea1d2441b7092a55a66f5f6e
walk bb588b310f6d4313b7e979a7291dda5ed7150f24
walk 43ede2c8f98a8d089be1d94a03ad25a442aaf70a
walk 7c8107ced46b499daaac7b31e9316b3ce02d5b97
walk 645d04783e96d519b04aa079152330ca583c06e1
walk 2a4b277efcaa4ccb2ce0c4e2db1359d4d9de50b3
walk a364a4c1b3dfcaa65b39a09162f71dbdedcdaa9d
walk a4ba211235ab711a6d626c6b1c58762067d24308
walk 6ba58730a9d61bcac2a1585d646670a50a75acb0
walk a805a8dc64b86bb1235b1a0016647f604f145441
walk b12275479b67093f8b399e6e1461c14b55889b3f
walk 8400d62a2dc5242baf76a47ffb2705a0809dbeaa
walk 64f8fbdfe9a4810987bf22ce1255cfdb9772e07a
walk 9ac44cb9aa52e0b2befa5e54c78ea36ff85bfa71
walk 41f92f338d79cd404e430832a6cbba601b00ad08
      8 [main] git-http-fetch 3436 _cygtls::handle_exceptions: Error while dumpi
ng state (probably corrupted stack)
/usr/bin/git-clone: line 33:  3436 Segmentation fault      (core dumped) git-htt
p-fetch $v -a -w "$tname" "$sha1" "$1"
rm: cannot remove directory `/cygdrive/c/Documents and Settings/pissaris/src/ffm
peg-pi/.git/clone-tmp': Directory not empty
The resulting directory contains only the following:

pissaris@pissaris ~/src/ffmpeg-pi$ ls .git/ -la total 0 drwxr-xr-x+ 3 pissaris mkgroup-l-d 0 May 9 14:02 . drwxr-xr-x+ 3 pissaris mkgroup-l-d 0 May 9 14:02 .. drwxr-xr-x+ 2 pissaris mkgroup-l-d 0 May 9 14:02 clone-tmp

pissaris@pissaris ~/src/ffmpeg-pi

pissaris@pissaris ~/src/ffmpeg-pi $ git --version git version 1.5.1.3

I'll see if 1.5.1.4 solves this crash, and will most likely have a go at getting the MinGW version compiled too.

Any clues on the reason for this crash? Is anyone already using GIT on Windows on real repositories?

With friendly regards, Takis

Johannes Sixt· May 9, 2007, 12:41 UTC · re: Panagiotis Issaris · lore

Re: GIT on Windows

Panagiotis Issaris wrote:
> I'll see if 1.5.1.4 solves this crash, and will most likely have a go at getting
> the MinGW version compiled too.

I don't think that the MinGW version can clone via http out of the box. If you can, use native git protocol or ssh. They are much preferred over http anyway (not only on Windows).

-- Hannes
Panagiotis Issaris· May 9, 2007, 12:42 UTC · re: Panagiotis Issaris · lore

Re: GIT on Windows

Panagiotis Issaris <takis.issaris <at> uhasselt.be> writes: [...]

Show 6 quoted lines
> pissaris <at> pissaris ~/src/ffmpeg-pi
> $ git --version
> git version 1.5.1.3
> 
> I'll see if 1.5.1.4 solves this crash, and will most likely 
> have a go at getting the MinGW version compiled too.

Please ignore this bugreport as GIT 1.5.1.4 indeed seems to solve this crash! :-) (That or the CygWin binary GIT 1.5.1.3 package might be broken).

With friendly regards,
Takis
 
 
Shawn O. Pearce· May 9, 2007, 18:58 UTC · re: Panagiotis Issaris · lore

Re: GIT on Windows

Panagiotis Issaris <takis.issaris@uhasselt.be> wrote:
> Any clues on the reason for this crash? Is anyone already using GIT on Windows
> on real repositories?

Yes, I'm using Git on Cygwin on real repositories. My largest there is about 60 MiB, ~70,000 objects, 10,000 files. Myself and about 25 others who are required to use Windows use it every day just fine.

I also use HTTP fetch to download the latest git.git changes so I can build them locally (I don't use the Cygwin package, I compile it myself from scratch) but I haven't done a clone over HTTP in ages as I already have a local git.git clone established in a few locations. I'd build any new clone from my existing local ones first...

-- 
Shawn.

← back to recent threads