* Git over HTTPS with basic authentication
@ 2013-04-18 19:47 Sebastian Schmidt
2013-04-18 19:54 ` Matthieu Moy
0 siblings, 1 reply; 4+ messages in thread
From: Sebastian Schmidt @ 2013-04-18 19:47 UTC (permalink / raw)
To: git
Why is git not working over HTTPS with basic authentication? I can clone
just fine, but when I try to push, it tells me
error: Cannot access URL https://..., return code 22
fatal: git-http-push failed
I have googled for an hour now, all I find is people that have the same
problem and the solution is always to use SSH.
Sibbo
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Git over HTTPS with basic authentication
2013-04-18 19:47 Git over HTTPS with basic authentication Sebastian Schmidt
@ 2013-04-18 19:54 ` Matthieu Moy
2013-04-18 20:43 ` Jeff King
0 siblings, 1 reply; 4+ messages in thread
From: Matthieu Moy @ 2013-04-18 19:54 UTC (permalink / raw)
To: Sebastian Schmidt; +Cc: git
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).
--
Matthieu Moy
http://www-verimag.imag.fr/~moy/
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Git over HTTPS with basic authentication
2013-04-18 19:54 ` Matthieu Moy
@ 2013-04-18 20:43 ` Jeff King
[not found] ` <1366361766.3873.4.camel@sibbo-laptop>
0 siblings, 1 reply; 4+ messages in thread
From: Jeff King @ 2013-04-18 20:43 UTC (permalink / raw)
To: Matthieu Moy; +Cc: Sebastian Schmidt, git
On Thu, Apr 18, 2013 at 09:54:32PM +0200, Matthieu Moy wrote:
> 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.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-04-19 15:36 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-18 19:47 Git over HTTPS with basic authentication Sebastian Schmidt
2013-04-18 19:54 ` Matthieu Moy
2013-04-18 20:43 ` Jeff King
[not found] ` <1366361766.3873.4.camel@sibbo-laptop>
2013-04-19 15:36 ` Jeff King
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).