Setting up git over webdav with anonymous access for read-only and password protected commit rights - blerb git repo available 2
Some useful info on the DH wiki for git and on kernal.org’s guide to setting up git over http. The latter is especially helpful for debugging suggestions (like using curl to check your .netrc access permission). Using the info in these guides:
- Create a repo, or use an existing one
- Enable WebDav access on a DH directory, using their panel. Set-up the username password for the committers, and disable the password protection box for read-only anonymous access (might be easier to keep it on until you have everything set-up right)
- Create a .netrc with the auth info for this webdav
- Test your access using the curl command in the kernal.org guide (you may find it useful to have password protection enabled at this point,).
- Connect to the webdav share using the username and password.
- Copy over the .git folder contents into the root of the webdav share (this is key, because DH’s anonymous access won’t show . files)
- cd into the webdav share from your local machine and run “git-update-server-info”
- profit
You should now have access to http://yourserver/gitfoldername and http://gituser@yourserver/gitfoldername. For example: you can “git clone http://blerb.infosauce.org/git/” for read-only access to the blerb repo. Now, if I can only get gitweb working despite the limited access control imposed by DH webDAV.
Update: Changes the url for blerb to still work right after I changed it around while playing with gitweb. Also, you should use git://42squared.com/git/blerb if you actually want the real blerb repository.

Articles via rss or email
I tried to get this going a couple of weeks ago. Wasted a couple hours on it before switching to git.caboo.se… Looks like you have a bit more patience than I.
Nah, Phil – you just knew git.caboo.se existed, whereas I didn’t. ;)