HTTP basic authentication support
- From
- Kalle Valo <kalle.valo@iki.fi>
- Date
- Nov 20, 2005, 08:38 UTC
- Message-ID
- <87u0e71zpx.fsf@litku.valo.iki.fi>
I keep some personal files in a git repository. Now I want to have the repository in an HTTP server so that I can access it everywhere I go. Since I don't want to share the repository with the whole world, I would like to use the HTTP basic authentication, just to give a little protection. But it seems that git doesn't support it, yet. Or did I miss something?
I made a test repository which requires basic authentication. Login is foo and password bar.
git clone doesn't work:
$ git clone http://foo:bar@www.valo.iki.fi/kalle/tmp/auth.git/ auth defaulting to local storage area Cannot get remote repository information. Perhaps git-update-server-info needs to be run there? $
But curl works:
$ curl http://foo:bar@www.valo.iki.fi/kalle/tmp/auth.git/info/refs 4cb663bd2b92d57c5e1ba0bfa9bf65c2e50ff46a refs/heads/master $
I'm using git updated an hour ago.
-- Kalle Valo