All of lore.kernel.org
 help / color / mirror / Atom feed
From: tom fogal <tfogal@sci.utah.edu>
To: git@vger.kernel.org
Subject: manual http authorization (no netrc)
Date: Thu, 06 Jan 2011 10:20:59 -0700	[thread overview]
Message-ID: <auto-000024252997@sci.utah.edu> (raw)

I'm getting authorization errors when I lack a .netrc for an http-based
server.  Specifically:

  tf@shigeru tmp $ git clone http://myhost:port/git/io.git
  Cloning into io...
  Username:
  Password:
  error: The requested URL returned error: 401 (curl_result = 22, http_code =
  401, sha1 = 9c201da4d64e2fd178935b9ebbd6e110a97578d4)
  error: Unable to find 9c201da4d64e2fd178935b9ebbd6e110a97578d4 under
  http://shigeru.sci.utah.edu:1234/git/io.git
  Cannot obtain needed blob 9c201da4d64e2fd178935b9ebbd6e110a97578d4
  while processing commit b1853d6f6a54cf22e259a75f77770eef53b8cb38.
  error: Fetch failed.

I did try multiple times; the username/password combo is correct :)

A friend of mine is also experiencing the same problem.  The server is
running git 1.5.6.5; my client is 1.7.3.4, and I'm not sure what the
other party's is, but it's likely to be recent.

Everything works fine if we just create a ~/.netrc and set things up
appropriately. `curl-config --version' says "libcurl 7.18.2" on my
workstation.

What have we configured incorrectly?

-tom

             reply	other threads:[~2011-01-06 17:52 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-06 17:20 tom fogal [this message]
2011-01-09 16:35 ` manual http authorization (no netrc) Tay Ray Chuan
2011-01-09 19:49   ` tom fogal

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=auto-000024252997@sci.utah.edu \
    --to=tfogal@sci.utah.edu \
    --cc=git@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.