Handy git-daemon Ruby script
May 29th, 2008
Last night’s Refactor meeting was great. A big thanks to Austin for his detailed Git talk, and to David for demoing some git repo sharing.
Austin has posted his slides on his website:
http://uberhip.com/projects/presentations.html
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.
We now have a nice little Ruby script that makes sharing a git repo snake simple. David posted the code to the Refactor mailing list.
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.
Have some thoughts on this? See here for how to reach me.