threads / discuss / 11600

Project Hosting with git ?

Subject: Project Hosting with git ?

## tl;dr

11 messages between Jan 12, 2008 and Jan 12, 2008.

replies: 10people: 5as markdown or json

Neshama Parhoti· Jan 12, 2008, 13:53 UTC · lore
Hello,

I am beginning a new Open Source project which I would like to manage with git.

I was wondering how is it possible with current hosting solutions ?

I mean, if I open a SourceForge project, I have to use cvs/subversion right ?
Is there any way to use git ?

Of course I can pay for a VPS and install my own git server but that would be a bit expensive.

Any ideas ?
How are the current git-using projects hosted (besides kernel.org...) ?

thank you very much neshama

Grégoire Barbier· Jan 12, 2008, 14:09 UTC · re: Neshama Parhoti · lore

Re: Project Hosting with git ?

Neshama Parhoti a écrit :
> I was wondering how is it possible with current hosting
> solutions ?
Hi.

There is a list of git projects and hosting here: http://git.or.cz/gitwiki/GitProjects

-- 
Grégoire Barbier - gb à gbarbier.org - +33 6 21 35 73 49
Neshama Parhoti· Jan 12, 2008, 15:27 UTC · re: Grégoire Barbier · lore

Re: Project Hosting with git ?

On Jan 12, 2008 4:09 PM, Grégoire Barbier <devel@gbarbier.org> wrote:
Show 8 quoted lines
> Neshama Parhoti a écrit :
> > I was wondering how is it possible with current hosting
> > solutions ?
>
> Hi.
>
> There is a list of git projects and hosting here:
> http://git.or.cz/gitwiki/GitProjects
thank you
>
> --
> Grégoire Barbier - gb à gbarbier.org - +33 6 21 35 73 49
>
Pascal Obry· Jan 12, 2008, 14:16 UTC · re: Neshama Parhoti · lore

Re: Project Hosting with git ?

Neshama Parhoti a écrit :
Show 9 quoted lines
> Hello,
> 
> I am beginning a new Open Source project which I would
> like to manage with git.
> 
> I was wondering how is it possible with current hosting
> solutions ?
> 
> I mean, if I open a SourceForge project, I have to use cvs/subversion right ?
That's right.
> Is there any way to use git ?
Using Savannah:http://savannah.gnu.org/
Or http://repo.or.cz

The former require approval to create the project but has more features (bug tracker...) and is somewhat faster (larger bandwidth), the later is simpler but do not require approval. I'm using both, and both are working fine.

There is probably others.
Pascal.
-- 
--|------------------------------------------------------
--| Pascal Obry                           Team-Ada Member
--| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE
--|------------------------------------------------------
--|              http://www.obry.net
--| "The best way to travel is by means of imagination"
--|
--| gpg --keyserver wwwkeys.pgp.net --recv-key C1082595
Neshama Parhoti· Jan 12, 2008, 15:28 UTC · re: Pascal Obry · lore

Re: Project Hosting with git ?

On Jan 12, 2008 4:16 PM, Pascal Obry <pascal@obry.net> wrote:
Show 17 quoted lines
> Neshama Parhoti a écrit :
> > Hello,
> >
> > I mean, if I open a SourceForge project, I have to use cvs/subversion right ?
>
> That's right.
>
> > Is there any way to use git ?
>
> Using Savannah:http://savannah.gnu.org/
>
> Or http://repo.or.cz
>
> The former require approval to create the project but has more features
> (bug tracker...) and is somewhat faster (larger bandwidth), the later is
> simpler but do not require approval. I'm using both, and both are
> working fine.
thanks a lot
Show 17 quoted lines
>
> There is probably others.
>
> Pascal.
>
> --
>
> --|------------------------------------------------------
> --| Pascal Obry                           Team-Ada Member
> --| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE
> --|------------------------------------------------------
> --|              http://www.obry.net
> --| "The best way to travel is by means of imagination"
> --|
> --| gpg --keyserver wwwkeys.pgp.net --recv-key C1082595
>
>
Stephen Sinclair· Jan 12, 2008, 16:45 UTC · re: Neshama Parhoti · lore

Re: Project Hosting with git ?

> I mean, if I open a SourceForge project, I have to use cvs/subversion right ?
>
> Is there any way to use git ?

There is currently an open feature request on sourceforge for git support. Please feel free to add a comment to the thread, hopefully if enough people do so they'll do something about it. (Though I wouldn't be surprised if they're working on it.)

https://sourceforge.net/tracker/?func=detail&atid=350001&aid=1828327&group_id=1

However, git works fine over http. I have a project on SF which I was using with subversion, but I recently switched the project over to git.

I simply posted a bare git repo on the project website, and bang it's "hosted" on sourceforge. In order to automate things a bit, I set up a local repo which, when I push to it, runs git-update-server-info and then uses rsync to upload the repo changes to the SF web server.

It seems to work fine. I do occasionally git-clone the http-hosted repo just to make sure things are still working, and so far no problems.

The downside is that SF will not collect statistics on the git repo. However, I've been using ohloh.net to track it instead, which works wonderfully.

Steve
Grégoire Barbier· Jan 12, 2008, 17:41 UTC · re: Stephen Sinclair · lore

Re: Project Hosting with git ?

Stephen Sinclair a écrit :
> However, git works fine over http.  I have a project on SF which I was
> using with subversion, but I recently switched the project over to
> git.

I disagree: git does not work "fine" over http, it only works fine for fetch/pull. At less with last versions, push over http/webdav does not work (and by the way corrupts the remote repository, by changing the HEAD sha without uploading related objects). I initiated a thread about that on the list a few weeks ago, with subject "git over webdav: what can I do for improving http-push ?". However I did not (yet?) post a patch.

> I simply posted a bare git repo on the project website, and bang it's
> "hosted" on sourceforge.  In order to automate things a bit, I set up
> a local repo which, when I push to it, runs git-update-server-info and
> then uses rsync to upload the repo changes to the SF web server.

I agree with this: if you push locally and then upload, it works fine. With rsync, ftp, sftp or whatever you want.

-- 
Grégoire Barbier - gb à gbarbier.org - +33 6 21 35 73 49
Stephen Sinclair· Jan 12, 2008, 17:54 UTC · re: Grégoire Barbier · lore

Re: Project Hosting with git ?

> I disagree: git does not work "fine" over http, it only works fine for
> fetch/pull.

You're taking me out of context. I meant it works fine for public hosting so that users can easily clone and create patches. This is the main motivation for publishing your repo, so in that sense it "works fine". (for me) Since SF supports ssh, there's no reason to need http-push. I wish they would just provide some recent git binaries on the sourceforge server, then we could git-push properly over ssh instead of using to use scp or rsync. I think that would be a good start. *shrug*

In any case, http-push over webdav would still require git binaries to be installed somewhere on SF, so it's essentially the same problem.

Steve
Grégoire Barbier· Jan 12, 2008, 18:01 UTC · re: Stephen Sinclair · lore

Re: Project Hosting with git ?

Stephen Sinclair a écrit :
Show 7 quoted lines
>> I disagree: git does not work "fine" over http, it only works fine for
>> fetch/pull.
> 
> You're taking me out of context.  I meant it works fine for public
> hosting so that users can easily clone and create patches.  This is
> the main motivation for publishing your repo, so in that sense it
> "works fine".  (for me)
I agree.
Show 7 quoted lines
> Since SF supports ssh, there's no reason to need http-push.  I wish
> they would just provide some recent git binaries on the sourceforge
> server, then we could git-push properly over ssh instead of using to
> use scp or rsync.  I think that would be a good start. *shrug*
> 
> In any case, http-push over webdav would still require git binaries to
> be installed somewhere on SF, so it's essentially the same problem.

I don't think so. A working http-push over webdav would be a dumb protocol (passive filesystem upload). However as you said before, this would not be taken in account by SF statistics and menus.

-- 
Grégoire Barbier - gb à gbarbier.org - +33 6 21 35 73 49
Stephen Sinclair· Jan 12, 2008, 18:08 UTC · re: Grégoire Barbier · lore

Re: Project Hosting with git ?

> I don't think so. A working http-push over webdav would be a dumb
> protocol (passive filesystem upload).

I see. Not having read your whole thread, I assumed you intended http-push to be active, more like the svn counterpart. My bad. That said, I think having an active http-push would be pretty useful. A passive http-push would be useful mainly for getting past http proxy servers I guess. Definitely could be nice for that.

Steve
Jakub Narebski· Jan 12, 2008, 17:46 UTC · re: Stephen Sinclair · lore

Re: Project Hosting with git ?

"Stephen Sinclair" <radarsat1@gmail.com> writes:
> Neshama Parhoti wrote:
Show 10 quoted lines
> > I mean, if I open a SourceForge project, I have to use cvs/subversion right ?
> >
> > Is there any way to use git ?
> 
> There is currently an open feature request on sourceforge for git support.
> Please feel free to add a comment to the thread, hopefully if enough
> people do so they'll do something about it.
> (Though I wouldn't be surprised if they're working on it.)
> 
> https://sourceforge.net/tracker/?func=detail&atid=350001&aid=1828327&group_id=1

Savannah, which is FOSS hosting site using SourceForge derived engine (named Savane) has Git support. What is a bit strange is that its fork Gna!, which also uses Savane, does not have Git support. This is because Savannah runs "cleanup" branch of Savane while Gna! runs plain (?) Savane; see http://git.or.cz/gitwiki/InterfacesFrontendsAndToolsWishlist#Savane

Alioth (Debian related projects hosting only) uses modified GForge engine, which in turn is some fork of SourceForge engine, also has git support.

Not that it helps much in adding Git support to SourceForge, as both Savane and GForge are GPL, and IIRC SF.net engine is now closed-source.

Show 7 quoted lines
> However, git works fine over http.  I have a project on SF which I was
> using with subversion, but I recently switched the project over to
> git.
> 
> I simply posted a bare git repo on the project website, and bang it's
> "hosted" on sourceforge.  In order to automate things a bit, I set up
> a local repo which, when I push to it, runs git-update-server-info and
You need only to enable (chmod a+x) default update hook for that.
Show 5 quoted lines
> then uses rsync to upload the repo changes to the SF web server.
> 
> It seems to work fine.  I do occasionally git-clone the http-hosted
> repo just to make sure things are still working, and so far no
> problems.

Nice solution, can be used in with any software hosting (BerliOS or Sarovar for example) which provides rsync or other way of syncing.

> The downside is that SF will not collect statistics on the git repo.
> However, I've been using ohloh.net to track it instead, which works
> wonderfully.
You can use GitStat in the same way as you provide Git repository,
  http://tree.celinuxforum.org/gitstat/
  http://sourceforge.net/projects/gitstat/
  http://www.ohloh.net/projects/8207?p=gitstat
but Ohloh have quite a nice features.
-- 
Jakub Narebski
Poland
ShadeHawk on #git

← back to recent threads