Jeremy's Thoughts - More git support for fedorapeople
Cycling, Fedora, MIT SDM and Miscellany

Jeremy Katz
Date: 2008-06-23 16:53
Subject: More git support for fedorapeople
Security: Public
Tags:fedora
One of the things provided for Fedora contributors is access to fedorapeople.org for hosting various web content. One thing that has become somewhat common there is hosting a git repository for someone to take a look from time to time. And since its inception, making this a little bit nicer has been one of the things I've hoped to be able to do.

Now that we have some time from observing the load and feel that the box isn't terribly loaded, I spent some time this afternoon making things a bit nicer for users who want to have a small git repository hosted there. As of right now, this should be considered beta (at best) and it may go away based on some trial time. Also, if you are hosting something more substantial with a number of contributors, I strongly suggest using fedorahosted instead. With those disclaimers out of the way, here's the basics for using it.
  • Create a public_git directory in your home directory
  • Put your git repository under this directory. Common methods for initially doing this would be rsync or scp of a repository you already have.
  • Touch the git-daemon-export-ok file in the repository. This makes it so that others have access to the repository
  • You can also set a description for the project by editing the description file in the repository
  • Users can clone your repository via something like git clone git://fedorapeople.org/~katzj/isomd5sum.git
  • You can see your project listed in gitweb once the project list updates (hourly). Note that this URL may change

And that's all there is to it. The documentation for fedorapeople has been updated with this information as well. Let me know if you run into any problems.

Post A Comment | 5 Comments | Share | Link



User: kulbirsaini.wordpress.com
Date: 2008-06-24 22:09 (UTC)
Subject: How to push?
Everything seems to work out of the box except git push.
I am not sure which url to use while pushing.
I tried something like "git push ssh://katzj@fedorapeople.org/~katzj/isomd5sum.git", but it didn't work.
Could you please help me out in that part?
Reply | Thread | Link



Jeremy Katz
User: katzj
Date: 2008-06-24 22:14 (UTC)
Subject: Re: How to push?
You need to include public_git in the path for pushing. While git-daemon handles looking in a path under your home directory, bare git (which is what gets used by ssh) does not. Yes, this is kind of lame
Reply | Parent | Thread | Link



User: kulbirsaini.wordpress.com
Date: 2008-06-25 08:40 (UTC)
Subject: Re: How to push?
thank you !
Reply | Parent | Thread | Link



User: (Anonymous)
Date: 2008-07-24 07:27 (UTC)
Subject: git URLs in gitweb possible?
Would it be possible to add URL: lines to the head of gitweb project pages like e.g. freedesktop.org gitweb do?

And perhaps the gitweb front page could remove the public_git part? As far as I can tell, the the "URL" constructed by the page title and the path with the USER/public_git/project.git cannot be accessed by git in any way, so that is just redundant information, right?

Great feature, even so, though!
Reply | Thread | Link



Jeremy Katz
User: katzj
Date: 2008-07-24 19:01 (UTC)
Subject: Re: git URLs in gitweb possible?
The problem for both is doing the massaging necessary for the display. gitweb by default doesn't really have the right knobs to tweak without just editing the perl script directly. Or at least, if it does, I didn't see them.

If someone wants to get a gitweb_config.perl working that makes them work, I'm more than willing to deploy them. But I stopped beating my head against the brick wall after a few hours.
Reply | Parent | Thread | Link



browse
my journal
September 2013