* Wrong error message when cloning from http gitlab (and everything still works anyway)
[not found] <DB8P194MB08704DAF8B33C67FCCE43EBDE08F2@DB8P194MB0870.EURP194.PROD.OUTLOOK.COM>
@ 2024-08-22 10:40 ` Marlon Regenhardt
2024-08-22 15:40 ` Junio C Hamano
0 siblings, 1 reply; 3+ messages in thread
From: Marlon Regenhardt @ 2024-08-22 10:40 UTC (permalink / raw)
To: git@vger.kernel.org
Hi,
I'm currently setting up my new work PC (now Windows 11) and got a weird error message when cloning our repository:
- run git clone on an http GitLab instance, in my case I ran `git clone http://gitlab.company-local-domain.de/group/project LocalRepo-Name`
Note:
- http, not https
- GitLab
- Get the following error message:
fatal: Unencrypted HTTP is not supported for GitHub. Ensure the repository remote URL is using HTTPS.
- Get prompted for and enter credentials
- Get warning about redirecting to .git URL
- Cloning commences and finishes successfully
Our GitLab is only reachable from the internal network, so adding https hasn't been a priority for our admins.
There is no GitHub involved at all, not sure where that comes from.
Except for the error message, everything works fine.
The message only appeared the first time I cloned something from this domain. From the second time, everything appeared as expected again.
git version shows 2.46.0.windows.1
Best regards
Marlon Regenhardt
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Wrong error message when cloning from http gitlab (and everything still works anyway)
2024-08-22 10:40 ` Wrong error message when cloning from http gitlab (and everything still works anyway) Marlon Regenhardt
@ 2024-08-22 15:40 ` Junio C Hamano
2024-08-28 15:53 ` Johannes Schindelin
0 siblings, 1 reply; 3+ messages in thread
From: Junio C Hamano @ 2024-08-22 15:40 UTC (permalink / raw)
To: Marlon Regenhardt; +Cc: git@vger.kernel.org
Marlon Regenhardt <marlon.r@hotmail.de> writes:
> I'm currently setting up my new work PC (now Windows 11) and got a weird error message when cloning our repository:
>
> - run git clone on an http GitLab instance, in my case I ran `git clone http://gitlab.company-local-domain.de/group/project LocalRepo-Name`
> Note:
> - http, not https
> - GitLab
> - Get the following error message:
> fatal: Unencrypted HTTP is not supported for GitHub. Ensure the repository remote URL is using HTTPS.
A funny thing is that
$ git grep "Unencrypted HTTP is not"
in the entire codebase of Git gives no hits. If this message is
coming from some add-on Git-for-Windows ships with, a better place
to raise this issue would be Git-for-Windows project's tracker page
https://github.com/git-for-windows/git/issues
than here on this list. I tried
https://github.com/search?q=org%3Agit-for-windows%20%22Unencrypted%20HTTP%22&type=code
to see if they have that string, which found no hits, so there may
be some other components, other than Git project ships and
Git-for-windws project adds, that is in play.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Wrong error message when cloning from http gitlab (and everything still works anyway)
2024-08-22 15:40 ` Junio C Hamano
@ 2024-08-28 15:53 ` Johannes Schindelin
0 siblings, 0 replies; 3+ messages in thread
From: Johannes Schindelin @ 2024-08-28 15:53 UTC (permalink / raw)
To: Junio C Hamano; +Cc: Marlon Regenhardt, git@vger.kernel.org
[-- Attachment #1: Type: text/plain, Size: 1503 bytes --]
Hi Junio & Marlon,
On Thu, 22 Aug 2024, Junio C Hamano wrote:
> Marlon Regenhardt <marlon.r@hotmail.de> writes:
>
> > I'm currently setting up my new work PC (now Windows 11) and got a weird error message when cloning our repository:
> >
> > - run git clone on an http GitLab instance, in my case I ran `git clone http://gitlab.company-local-domain.de/group/project LocalRepo-Name`
> > Note:
> > - http, not https
> > - GitLab
> > - Get the following error message:
> > fatal: Unencrypted HTTP is not supported for GitHub. Ensure the repository remote URL is using HTTPS.
>
> A funny thing is that
>
> $ git grep "Unencrypted HTTP is not"
>
> in the entire codebase of Git gives no hits. If this message is
> coming from some add-on Git-for-Windows ships with, a better place
> to raise this issue would be Git-for-Windows project's tracker page
>
> https://github.com/git-for-windows/git/issues
>
> than here on this list. I tried
>
> https://github.com/search?q=org%3Agit-for-windows%20%22Unencrypted%20HTTP%22&type=code
>
> to see if they have that string, which found no hits, so there may
> be some other components, other than Git project ships and
> Git-for-windws project adds, that is in play.
Seems that Marlon found the correct project to fix this:
https://github.com/git-ecosystem/git-credential-manager/pull/1694
Now we only need to find funding for non-security-related work on GCM and
we'll be good.
Ciao,
Johannes
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-08-28 15:53 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <DB8P194MB08704DAF8B33C67FCCE43EBDE08F2@DB8P194MB0870.EURP194.PROD.OUTLOOK.COM>
2024-08-22 10:40 ` Wrong error message when cloning from http gitlab (and everything still works anyway) Marlon Regenhardt
2024-08-22 15:40 ` Junio C Hamano
2024-08-28 15:53 ` Johannes Schindelin
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).