git/list[1] front-page[2] threads[3] people[4] search[5] about
 

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/
Previous: Junio C HamanoNext: Mike Hommey
Message 6 of 18 in “Fix problem with authentification on http repository.”
  1. Fix problem with authentification on http repository.jean.guyader@linkea.org, Sep 29, 2007
  2. Johannes SchindelinSep 29, 2007
  3. Junio C HamanoSep 29, 2007
  4. Johannes SchindelinSep 29, 2007
  5. Junio C HamanoSep 30, 2007
  6. Junio C HamanoJul 9, 2008
  7. Mike HommeyJul 9, 2008
  8. Junio C HamanoJul 9, 2008
  9. Mike HommeyJul 9, 2008
  10. Daniel StenbergJul 9, 2008
  11. Junio C HamanoJul 9, 2008
  12. Mike HommeyJul 9, 2008
  13. Johannes SchindelinJul 9, 2008
  14. Jeff KingJul 10, 2008
  15. Junio C HamanoJul 10, 2008
  16. Jeff KingJul 10, 2008
  17. Johannes SchindelinJul 10, 2008
  18. Andreas EricssonJul 10, 2008

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.