# Hosting from Windows XP.

10 messages from 2009-01-26 to 2009-01-27. Participants: Tim Visher, Shawn O. Pearce, Johannes Schindelin, Jakub Narebski, Tay Ray Chuan, Johannes Gilger.
Thread: https://gitlist.dev/t/17375

## Tim Visher, 2009-01-26 16:27

Subject: Hosting from Windows XP.
Message-ID: <c115fd3c0901260827ge5e4b29w871b345da2373f6b@mail.gmail.com>
URL: https://gitlist.dev/e/c115fd3c0901260827ge5e4b29w871b345da2373f6b%40mail.gmail.com

```
Hello Everyone,

I'm trying to get git set up for my company.  We're stuck using
Windows for the foreseeable future so for now I have to host the
central integration repository out of a Windows box.  I figured the
easiest way to do this, short of installing cygwin, would be to do a
simple msysgit install and then run git daemon with the relevant repo
copied over onto the server.  Then devs could track that repo.
However, it appears that msysgit does not install git daemon.

I may totally be missing something here, but I don't know what.  Short
of the question is, how do I host a repo out of Windows?

Thanks in advance!

-- 

In Christ,

Timmy V.

http://burningones.com/
http://five.sentenc.es/ - Spend less time on e-mail

```

## Shawn O. Pearce, 2009-01-26 16:31

Subject: Re: Hosting from Windows XP.
Message-ID: <20090126163124.GA31810@spearce.org>
URL: https://gitlist.dev/e/20090126163124.GA31810%40spearce.org
In-Reply-To: <c115fd3c0901260827ge5e4b29w871b345da2373f6b@mail.gmail.com>

```
Tim Visher <tim.visher@gmail.com> wrote:
> I'm trying to get git set up for my company.  We're stuck using
> Windows for the foreseeable future so for now I have to host the
> central integration repository out of a Windows box.  I figured the
> easiest way to do this, short of installing cygwin, would be to do a
> simple msysgit install and then run git daemon with the relevant repo
> copied over onto the server.  Then devs could track that repo.
> However, it appears that msysgit does not install git daemon.

git-daemon isn't ported yet, due to its heavy reliance on POSIX
behavior during fork+exec.
 
> I may totally be missing something here, but I don't know what.  Short
> of the question is, how do I host a repo out of Windows?

I think your options are limited to:

- Use Cygwin
- Use a virtual machine running Linux with git inside it
- Use JGit and its daemon

-- 
Shawn.

```

## Johannes Schindelin, 2009-01-26 16:45

Subject: Re: Hosting from Windows XP.
Message-ID: <alpine.DEB.1.00.0901261744240.25749@intel-tinevez-2-302>
URL: https://gitlist.dev/e/alpine.DEB.1.00.0901261744240.25749%40intel-tinevez-2-302
In-Reply-To: <c115fd3c0901260827ge5e4b29w871b345da2373f6b@mail.gmail.com>

```
Hi,

On Mon, 26 Jan 2009, Tim Visher wrote:

> I may totally be missing something here, but I don't know what.  Short 
> of the question is, how do I host a repo out of Windows?

Use a net share.  Use the native permission system to restrict/open up the 
repository for certain people to read from/write to.

Ciao,
Dscho

```

## Jakub Narebski, 2009-01-26 17:34

Subject: Re: Hosting from Windows XP.
Message-ID: <m3bptux984.fsf@localhost.localdomain>
URL: https://gitlist.dev/e/m3bptux984.fsf%40localhost.localdomain
In-Reply-To: <20090126163124.GA31810@spearce.org>

```
"Shawn O. Pearce" <spearce@spearce.org> writes:
> Tim Visher <tim.visher@gmail.com> wrote:

> > I'm trying to get git set up for my company.  We're stuck using
> > Windows for the foreseeable future so for now I have to host the
> > central integration repository out of a Windows box.  I figured the
> > easiest way to do this, short of installing cygwin, would be to do a
> > simple msysgit install and then run git daemon with the relevant repo
> > copied over onto the server.  Then devs could track that repo.
> > However, it appears that msysgit does not install git daemon.
> 
> git-daemon isn't ported yet, due to its heavy reliance on POSIX
> behavior during fork+exec.

You can use instead "dumb" HTTP protocol, or network filesystem
(network share).  Or SSH.

Note that for push you don't [usually] use git-daemon: you can use
SSH, filesystem (network share), HTTPS with WebDAV.

> > I may totally be missing something here, but I don't know what.  Short
> > of the question is, how do I host a repo out of Windows?
> 
> I think your options are limited to:
[...]
> - Use JGit and its daemon

>From what I remember currently JGit daemon generates suboptimal
packfiles, as it does not support delta compression yet...

-- 
Jakub Narebski
Poland
ShadeHawk on #git

```

## Shawn O. Pearce, 2009-01-26 17:38

Subject: Re: Hosting from Windows XP.
Message-ID: <20090126173814.GC31810@spearce.org>
URL: https://gitlist.dev/e/20090126173814.GC31810%40spearce.org
In-Reply-To: <m3bptux984.fsf@localhost.localdomain>

```
Jakub Narebski <jnareb@gmail.com> wrote:
> "Shawn O. Pearce" <spearce@spearce.org> writes:
> > - Use JGit and its daemon
> 
> From what I remember currently JGit daemon generates suboptimal
> packfiles, as it does not support delta compression yet...

Yes.

It does however support delta-reuse, and it only supports the
index-pack variant during receive-pack.  So it saves and reuses
any deltas created by C git.  Which makes it almost tolerable to
work with as a bit server.

-- 
Shawn.

```

## Tay Ray Chuan, 2009-01-26 17:44

Subject: Re: Hosting from Windows XP.
Message-ID: <be6fef0d0901260944l7e128588xc560810515e5f941@mail.gmail.com>
URL: https://gitlist.dev/e/be6fef0d0901260944l7e128588xc560810515e5f941%40mail.gmail.com
In-Reply-To: <alpine.DEB.1.00.0901261744240.25749@intel-tinevez-2-302>

```
Hi,

On Tue, Jan 27, 2009 at 12:45 AM, Johannes Schindelin
<Johannes.Schindelin@gmx.de> wrote:
> Use a net share.  Use the native permission system to restrict/open up the
> repository for certain people to read from/write to.

hmm, does this entail git daemon usage too?

-- 
Cheers,
Ray Chuan

```

## Tay Ray Chuan, 2009-01-26 17:46

Subject: Re: Hosting from Windows XP.
Message-ID: <be6fef0d0901260946jb6ef8deo59dc16a74a371074@mail.gmail.com>
URL: https://gitlist.dev/e/be6fef0d0901260946jb6ef8deo59dc16a74a371074%40mail.gmail.com
In-Reply-To: <c115fd3c0901260827ge5e4b29w871b345da2373f6b@mail.gmail.com>

```
Hi,

On Tue, Jan 27, 2009 at 12:27 AM, Tim Visher <tim.visher@gmail.com> wrote:
> Hello Everyone,
>
> I'm trying to get git set up for my company.  We're stuck using
> Windows for the foreseeable future so for now I have to host the
> central integration repository out of a Windows box.  I figured the
> easiest way to do this, short of installing cygwin, would be to do a
> simple msysgit install and then run git daemon with the relevant repo
> copied over onto the server.  Then devs could track that repo.
> However, it appears that msysgit does not install git daemon.

you might want to look at using pushing over DAV: say, have all your
employees pulling from a DAV-enabled server.

The DAV protocol itself is platform-agnostic, so your server could be
Windows or Linux or whatever. Since DAV deals with file I/O, you might
want to look at your security options, though I think basic access
authentication would be enough if your server is only accessible
within your company's LAN.

By pushing over DAV, you can avoid running a git daemon. Looking at
how you would do this on Windows, i don't think it's advisable to do
so.

To do this, first, you would need to have cygwin, then you have to run
"cygrunsrv -I", which will install your git daemon as a Windows
service.

AFAIK, cygrunsrv pipes stuff to git-daemon. I don't know how good this
option is, reliablity or performance-wise.

I've tried this out (somewhat limitedly) using git built on cygwin,
with an Apache server, though currently you would have problems if
your Apache was running on a Windows box (my patch to fix this is on
its way).


-- 
Cheers,
Ray Chuan

```

## Shawn O. Pearce, 2009-01-26 17:46

Subject: Re: Hosting from Windows XP.
Message-ID: <20090126174656.GD31810@spearce.org>
URL: https://gitlist.dev/e/20090126174656.GD31810%40spearce.org
In-Reply-To: <be6fef0d0901260944l7e128588xc560810515e5f941@mail.gmail.com>

```
Tay Ray Chuan <rctay89@gmail.com> wrote:
> On Tue, Jan 27, 2009 at 12:45 AM, Johannes Schindelin
> <Johannes.Schindelin@gmx.de> wrote:
> > Use a net share.  Use the native permission system to restrict/open up the
> > repository for certain people to read from/write to.
> 
> hmm, does this entail git daemon usage too?

No, developers would be accessing the repository directly over SMB.

Its slower than if you used git daemon.  Access over SMB is
tolerable, especially if your network is fast, but there's still a
lot more data transfer then if the native git protocol could be used.

-- 
Shawn.

```

## Johannes Gilger, 2009-01-26 18:35

Subject: Re: Hosting from Windows XP.
Message-ID: <glkvpp$fvr$1@ger.gmane.org>
URL: https://gitlist.dev/e/glkvpp%24fvr%241%40ger.gmane.org
In-Reply-To: <c115fd3c0901260827ge5e4b29w871b345da2373f6b@mail.gmail.com>

```
On 2009-01-26, Tim Visher <tim.visher@gmail.com> wrote:
> easiest way to do this, short of installing cygwin, would be to do a

I know you said "short of installing cygwin", but I'd like to ask you if 
you have ever used CygWin. I'd suggest you give it a try first (if you 
haven't already) because it would then enable you to use a wide range of 
tools from the unix-world without a lot of hassle. git, for example, can 
be downloaded and compiled out-of-the-box, meaning the git-daemon as 
well. You even get an ssh-server with cygwin (on windows, how cool is 
that ;).

Greetings,
Jojo

-- 
Johannes Gilger <heipei@hackvalue.de>
http://hackvalue.de/heipei/
GPG-Key: 0x42F6DE81
GPG-Fingerprint: BB49 F967 775E BB52 3A81  882C 58EE B178 42F6 DE81

```

## Tim Visher, 2009-01-27 18:24

Subject: Re: Hosting from Windows XP.
Message-ID: <c115fd3c0901271024r5ecf1dd1g952c807dd5a6a3b4@mail.gmail.com>
URL: https://gitlist.dev/e/c115fd3c0901271024r5ecf1dd1g952c807dd5a6a3b4%40mail.gmail.com
In-Reply-To: <glkvpp$fvr$1@ger.gmane.org>

```
Well, I ended up going with Cygwin.  Didn't feel like the hassle of
all of the rest of that stuff.  Thanks so much, everyone. :)

-- 

In Christ,

Timmy V.

http://burningones.com/
http://five.sentenc.es/ - Spend less time on e-mail

```
