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

Wrong error message when cloning from http gitlab (and everything still works anyway)

From
MRMarlon Regenhardt <marlon.r@hotmail.de>
Date
Aug 22, 2024, 10:40 UTC
Message-ID
<DB8P194MB0870877CBCB0576CCCB520C0E08F2@DB8P194MB0870.EURP194.PROD.OUTLOOK.COM>
In-Reply-To
<DB8P194MB08704DAF8B33C67FCCE43EBDE08F2@DB8P194MB0870.EURP194.PROD.OUTLOOK.COM>
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

Next: Junio C Hamano
Message 1 of 3 in “Wrong error message when cloning from http gitlab (and everything still works anyway)”
  1. Marlon RegenhardtAug 22, 2024
  2. Junio C HamanoAug 22, 2024
  3. Johannes SchindelinAug 28, 2024

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.