git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* HTTP basic authentication support
@ 2005-11-20  8:38 Kalle Valo
  2005-11-20 10:05 ` [PATCH] Support username and password inside URL Kalle Valo
  0 siblings, 1 reply; 8+ messages in thread
From: Kalle Valo @ 2005-11-20  8:38 UTC (permalink / raw)
  To: git

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

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2005-11-24 23:01 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-20  8:38 HTTP basic authentication support Kalle Valo
2005-11-20 10:05 ` [PATCH] Support username and password inside URL Kalle Valo
2005-11-20 20:21   ` Junio C Hamano
2005-11-20 20:46     ` Krzysztof Halasa
2005-11-23 20:56     ` Kalle Valo
2005-11-24 22:14       ` Junio C Hamano
2005-11-24 22:24         ` Johannes Schindelin
2005-11-24 23:01           ` Junio C Hamano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).