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

Re: Git over HTTPS with basic authentication

From
Jeff King <peff@peff.net>
Date
Apr 18, 2013, 20:43 UTC
Message-ID
<20130418204320.GA6888@sigill.intra.peff.net>
In-Reply-To
<vpq8v4f62dj.fsf@grenoble-inp.fr>
On Thu, Apr 18, 2013 at 09:54:32PM +0200, Matthieu Moy wrote:
Show 9 quoted lines
> Sebastian Schmidt <isibboi@gmail.com> writes:
> 
> > Why is git not working over HTTPS with basic authentication? I can clone
> > just fine, but when I try to push, it tells me
> 
> What are you using on the server? Dumb HTTP works by serving the
> repository files as static pages, which is fundamentally read-only. The
> recommended way is to use smart-HTTP (see man git-http-backend, requires
> Git on the server), and the alternative is to use webdav (much slower).

Yeah, this is definitely dumb http (since http-push is involved at all, which the original error message showed). Code 22 is curl's "there was an HTTP error" code, but http-push annoyingly does not output the actual HTTP error[1]. You can see more by setting GIT_CURL_VERBOSE=1 in the environment.

Though if you know you did not set up WebDAV on the server, then we can know that is the problem even without seeing the HTTP code. :)

-Peff
[1] The dumb-http push code is largely unloved and unmaintained at this
    point. Yet another reason to move to smart http.
Previous: Matthieu MoyNext: Jeff King
Message 3 of 4 in “Git over HTTPS with basic authentication”
  1. Sebastian SchmidtApr 18, 2013
  2. Matthieu MoyApr 18, 2013
  3. Jeff KingApr 18, 2013
  4. Jeff KingApr 19, 2013

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.