Re: [PATCH] Fix problem with authentification on http repository.
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jul 9, 2008, 05:44 UTC
- Message-ID
- <7v4p6zmx0l.fsf@gitster.siamese.dyndns.org>
- In-Reply-To
- <7v4phdja01.fsf@gitster.siamese.dyndns.org>
Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:
Show 9 quoted lines
> On Sat, 29 Sep 2007, Junio C Hamano wrote: > >> We never supported URLs with embedded credentials (see >> Documentation/urls.txt), partly because nobody asked for it, but >> more importantly because giving -n to curl to have it read from >> user's .netrc is generally much more preferred approach. > > To elaborate on that: if you fetch from somewhere, your url, username and > password can be read from the output of "ps ax | grep http" very easily.
Actually Documentation/howto/setup-git-server-over-http.txt talks about http://user@server/path/ format. How well does this work in practice? If it does, we should update Documentation/urls.txt to allow optional user@ there like...
---
Documentation/urls.txt | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/Documentation/urls.txt b/Documentation/urls.txt index e67f914..c9aab86 100644 --- a/Documentation/urls.txt +++ b/Documentation/urls.txt @@ -6,8 +6,8 @@ to name the remote repository: =============================================================== - rsync://host.xz/path/to/repo.git/ -- http://host.xz/path/to/repo.git/ -- https://host.xz/path/to/repo.git/ +- http://{startsb}user@{endsb}host.xz/path/to/repo.git/ +- https://{startsb}user@{endsb}host.xz/path/to/repo.git/ - git://host.xz/path/to/repo.git/ - git://host.xz/~user/path/to/repo.git/ - ssh://{startsb}user@{endsb}host.xz{startsb}:port{endsb}/path/to/repo.git/