{"thread":{"id":"61992","subject":"Wrong error message when cloning from http gitlab (and everything still works anyway)","startedAt":"2024-08-22T10:40:19Z","lastAt":"2024-08-28T15:53:28Z","messageCount":3,"participants":["Marlon Regenhardt","Junio C Hamano","Johannes Schindelin"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"501528","messageId":"DB8P194MB0870877CBCB0576CCCB520C0E08F2@DB8P194MB0870.EURP194.PROD.OUTLOOK.COM","threadId":"61992","inReplyTo":"DB8P194MB08704DAF8B33C67FCCE43EBDE08F2@DB8P194MB0870.EURP194.PROD.OUTLOOK.COM","subject":"Wrong error message when cloning from http gitlab (and everything still works anyway)","fromName":"Marlon Regenhardt","fromEmail":"marlon.r@hotmail.de","sentAt":"2024-08-22T10:40:15Z","receivedAt":"2024-08-22T10:40:19Z","isPatch":false,"sender":{"key":"marlon.r@hotmail.de","avatar":null},"body":"Hi,\n\nI'm currently setting up my new work PC (now Windows 11) and got a weird error message when cloning our repository:\n\n - 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`\n   Note:\n    - http, not https\n    - GitLab\n - Get the following error message:\n   fatal: Unencrypted HTTP is not supported for GitHub. Ensure the repository remote URL is using HTTPS.\n - Get prompted for and enter credentials\n - Get warning about redirecting to .git URL\n - Cloning commences and finishes successfully\n\nOur GitLab is only reachable from the internal network, so adding https hasn't been a priority for our admins.\nThere is no GitHub involved at all, not sure where that comes from.\nExcept for the error message, everything works fine.\nThe message only appeared the first time I cloned something from this domain. From the second time, everything appeared as expected again.\ngit version shows 2.46.0.windows.1\n\nBest regards\nMarlon Regenhardt"},{"id":"501541","messageId":"xmqqh6bcva55.fsf@gitster.g","threadId":"61992","inReplyTo":"DB8P194MB0870877CBCB0576CCCB520C0E08F2@DB8P194MB0870.EURP194.PROD.OUTLOOK.COM","subject":"Re: Wrong error message when cloning from http gitlab (and everything still works anyway)","fromName":"Junio C Hamano","fromEmail":"gitster@pobox.com","sentAt":"2024-08-22T15:40:22Z","receivedAt":"2024-08-22T15:40:25Z","isPatch":false,"sender":{"key":"gitster@pobox.com","avatar":"https://avatars.githubusercontent.com/u/54884?v=4"},"body":"Marlon Regenhardt <marlon.r@hotmail.de> writes:\n\n> I'm currently setting up my new work PC (now Windows 11) and got a weird error message when cloning our repository:\n>\n>  - 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`\n>    Note:\n>     - http, not https\n>     - GitLab\n>  - Get the following error message:\n>    fatal: Unencrypted HTTP is not supported for GitHub. Ensure the repository remote URL is using HTTPS.\n\nA funny thing is that\n\n    $ git grep \"Unencrypted HTTP is not\"\n\nin the entire codebase of Git gives no hits.  If this message is\ncoming from some add-on Git-for-Windows ships with, a better place\nto raise this issue would be Git-for-Windows project's tracker page\n\n  https://github.com/git-for-windows/git/issues\n\nthan here on this list.  I tried\n\n  https://github.com/search?q=org%3Agit-for-windows%20%22Unencrypted%20HTTP%22&type=code\n\nto see if they have that string, which found no hits, so there may\nbe some other components, other than Git project ships and\nGit-for-windws project adds, that is in play.\n"},{"id":"501779","messageId":"1a2fa9e6-fafa-8981-568c-007e4b6c8896@gmx.de","threadId":"61992","inReplyTo":"xmqqh6bcva55.fsf@gitster.g","subject":"Re: Wrong error message when cloning from http gitlab (and everything still works anyway)","fromName":"Johannes Schindelin","fromEmail":"johannes.schindelin@gmx.de","sentAt":"2024-08-28T15:53:22Z","receivedAt":"2024-08-28T15:53:28Z","isPatch":false,"sender":{"key":"johannes.schindelin@gmx.de","avatar":"https://avatars.githubusercontent.com/u/127790?v=4"},"body":"Hi Junio & Marlon,\n\nOn Thu, 22 Aug 2024, Junio C Hamano wrote:\n\n> Marlon Regenhardt <marlon.r@hotmail.de> writes:\n>\n> > I'm currently setting up my new work PC (now Windows 11) and got a weird error message when cloning our repository:\n> >\n> >  - 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`\n> >    Note:\n> >     - http, not https\n> >     - GitLab\n> >  - Get the following error message:\n> >    fatal: Unencrypted HTTP is not supported for GitHub. Ensure the repository remote URL is using HTTPS.\n>\n> A funny thing is that\n>\n>     $ git grep \"Unencrypted HTTP is not\"\n>\n> in the entire codebase of Git gives no hits.  If this message is\n> coming from some add-on Git-for-Windows ships with, a better place\n> to raise this issue would be Git-for-Windows project's tracker page\n>\n>   https://github.com/git-for-windows/git/issues\n>\n> than here on this list.  I tried\n>\n>   https://github.com/search?q=org%3Agit-for-windows%20%22Unencrypted%20HTTP%22&type=code\n>\n> to see if they have that string, which found no hits, so there may\n> be some other components, other than Git project ships and\n> Git-for-windws project adds, that is in play.\n\nSeems that Marlon found the correct project to fix this:\nhttps://github.com/git-ecosystem/git-credential-manager/pull/1694\n\nNow we only need to find funding for non-security-related work on GCM and\nwe'll be good.\n\nCiao,\nJohannes\n"}]}