threads / discuss / 17375

Hosting from Windows XP.

Subject: Hosting from Windows XP.

## tl;dr

10 messages between Jan 26, 2009 and Jan 27, 2009.

replies: 9people: 6as markdown or json

Tim Visher· Jan 26, 2009, 16:27 UTC · lore
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· Jan 26, 2009, 16:31 UTC · re: Tim Visher · lore

Re: Hosting from Windows XP.

Tim Visher <tim.visher@gmail.com> wrote:
Show 7 quoted lines
> 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.
Jakub Narebski· Jan 26, 2009, 17:34 UTC · re: Shawn O. Pearce · lore

Re: Hosting from Windows XP.

"Shawn O. Pearce" <spearce@spearce.org> writes:
> Tim Visher <tim.visher@gmail.com> wrote:
Show 10 quoted lines
> > 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· Jan 26, 2009, 17:38 UTC · re: Jakub Narebski · lore

Re: Hosting from Windows XP.

Jakub Narebski <jnareb@gmail.com> wrote:
Show 5 quoted lines
> "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.
Johannes Schindelin· Jan 26, 2009, 16:45 UTC · re: Tim Visher · lore

Re: Hosting from Windows XP.

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

Tay Ray Chuan· Jan 26, 2009, 17:44 UTC · re: Johannes Schindelin · lore

Re: Hosting from Windows XP.

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
Shawn O. Pearce· Jan 26, 2009, 17:46 UTC · re: Tay Ray Chuan · lore

Re: Hosting from Windows XP.

Tay Ray Chuan <rctay89@gmail.com> wrote:
Show 6 quoted lines
> 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.
Tay Ray Chuan· Jan 26, 2009, 17:46 UTC · re: Tim Visher · lore

Re: Hosting from Windows XP.

Hi,
On Tue, Jan 27, 2009 at 12:27 AM, Tim Visher <tim.visher@gmail.com> wrote:
Show 9 quoted lines
> 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
Johannes Gilger· Jan 26, 2009, 18:35 UTC · re: Tim Visher · lore

Re: Hosting from Windows XP.

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· Jan 27, 2009, 18:24 UTC · re: Johannes Gilger · lore

Re: Hosting from Windows XP.

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

← back to recent threads