{"thread":{"id":"47042","subject":"Why does fetch-pack not works over http?","startedAt":"2017-10-27T10:51:57Z","lastAt":"2017-10-30T16:58:22Z","messageCount":3,"participants":["Alvaro del Castillo","Andreas Schwab"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"331148","messageId":"1509100979.32292.19.camel@bitergia.com","threadId":"47042","inReplyTo":null,"subject":"Why does fetch-pack not works over http?","fromName":"Alvaro del Castillo","fromEmail":"acs@bitergia.com","sentAt":"2017-10-27T10:42:59Z","receivedAt":"2017-10-27T10:51:57Z","isPatch":false,"sender":{"key":"acs@bitergia.com","avatar":null},"body":"Dear all,\n\nWe're wondering why \"fetch-pack\" (when is running from the command\nline) doesn't handle \"https://\" protocol. It only works with \"git://\".\n\nFor instance, this doesn't work:\n\n$ git fetch-pack https://github.com/git/git refs/heads/master\nfatal: I don't handle protocol 'https'\n\nwhile this does:\n\n$ git fetch-pack git://github.com/git/git refs/heads/master\n\nThe funny thing is that under the hood, \"fetch\" calls \"fetch-pack\"\nusing \"https\" procotol. Example of a trace below:\n\n12:03:07.512558 git.c:344               trace: built-in: git 'fetch-\npack' '--stateless-rpc' '--stdin' '--lock-pack' '--thin' 'https://githu\nb.com/git/git/'\n\nCheers\n-- \nAlvaro del Castillo San Félix\nacs@bitergia.com - Chief Technical Officer (CTO)\nhttp://www.bitergia.com\n\"Software metrics for your peace of mind\"\n\n\n\n"},{"id":"331151","messageId":"873764bwjd.fsf@linux-m68k.org","threadId":"47042","inReplyTo":"1509100979.32292.19.camel@bitergia.com","subject":"Re: Why does fetch-pack not works over http?","fromName":"Andreas Schwab","fromEmail":"schwab@linux-m68k.org","sentAt":"2017-10-27T12:33:10Z","receivedAt":"2017-10-27T12:33:19Z","isPatch":false,"sender":{"key":"schwab@linux-m68k.org","avatar":"https://avatars.githubusercontent.com/u/2175493?v=4"},"body":"On Okt 27 2017, Alvaro del Castillo <acs@bitergia.com> wrote:\n\n> We're wondering why \"fetch-pack\" (when is running from the command\n> line) doesn't handle \"https://\" protocol. It only works with \"git://\".\n>\n> For instance, this doesn't work:\n>\n> $ git fetch-pack https://github.com/git/git refs/heads/master\n> fatal: I don't handle protocol 'https'\n>\n> while this does:\n>\n> $ git fetch-pack git://github.com/git/git refs/heads/master\n>\n> The funny thing is that under the hood, \"fetch\" calls \"fetch-pack\"\n> using \"https\" procotol. Example of a trace below:\n>\n> 12:03:07.512558 git.c:344               trace: built-in: git 'fetch-\n> pack' '--stateless-rpc' '--stdin' '--lock-pack' '--thin' 'https://githu\n> b.com/git/git/'\n\nWith --stateless-rpc, fetch-pack doesn't do the connect itself, but\nexpects the caller having set up a pipe to it.  The URL is then actually\nignored.\n\nAndreas.\n\n-- \nAndreas Schwab, schwab@linux-m68k.org\nGPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5\n\"And now for something completely different.\"\n"},{"id":"331367","messageId":"1509382693.27976.15.camel@bitergia.com","threadId":"47042","inReplyTo":"873764bwjd.fsf@linux-m68k.org","subject":"Re: Why does fetch-pack not works over http?","fromName":"Alvaro del Castillo","fromEmail":"acs@bitergia.com","sentAt":"2017-10-30T16:58:13Z","receivedAt":"2017-10-30T16:58:22Z","isPatch":false,"sender":{"key":"acs@bitergia.com","avatar":null},"body":"Hi Andreas,\n\nEl vie, 27-10-2017 a las 14:33 +0200, Andreas Schwab escribió:\n> On Okt 27 2017, Alvaro del Castillo <acs@bitergia.com> wrote:\n> \n> > \n> > We're wondering why \"fetch-pack\" (when is running from the command\n> > line) doesn't handle \"https://\" protocol. It only works with\n> > \"git://\".\n> > \n> > For instance, this doesn't work:\n> > \n> > $ git fetch-pack https://github.com/git/git refs/heads/master\n> > fatal: I don't handle protocol 'https'\n> > \n> > while this does:\n> > \n> > $ git fetch-pack git://github.com/git/git refs/heads/master\n> > \n> > The funny thing is that under the hood, \"fetch\" calls \"fetch-pack\"\n> > using \"https\" procotol. Example of a trace below:\n> > \n> > 12:03:07.512558 git.c:344               trace: built-in: git\n> > 'fetch-\n> > pack' '--stateless-rpc' '--stdin' '--lock-pack' '--thin' 'https://g\n> > ithu\n> > b.com/git/git/'\n> With --stateless-rpc, fetch-pack doesn't do the connect itself, but\n> expects the caller having set up a pipe to it.  The URL is then\n> actually\n> ignored.\n\nOk, I have understood that reading the git code but, is it possible to\ncreate this pipe using command line? Or is that something designed to\nbe used inside the git execution?\n\nThanks!\n\n> \n> Andreas.\n> \n\n-- \nAlvaro del Castillo San Félix\nacs@bitergia.com - Chief Technical Officer (CTO)\nhttp://www.bitergia.com\n\"Software metrics for your peace of mind\"\n\n\n\n"}]}