This post originated from an RSS feed registered with Ruby Buzz
by James Britt.
Original Post: Handy git-daemon Ruby script
Feed Title: James Britt: Ruby Development
Feed URL: http://feeds.feedburner.com/JamesBritt-Home
Feed Description: James Britt: Playing with better toys
And you can clone it from the repo with: git clone http://uberhip.com/git/gitintro.git
Earlier in the day David and I were poking around with git-daemon, getting the parameters Just So and experimenting with basic repo sharing. It crossed my mind that the process for selecting the git-daemon arguments and kicking off the process should be automated with a script; David, though, was way ahead of me and quickly had a working version running.
You just drop the script in your bin dir, and when you want to share a git repo you cd to the root of the working directory and run share_git_repo (or whatever you’ve named it).
It will figure out the correct base path and display the URL needed by the client.