{"thread":{"id":"34270","subject":"Basic git-archive --remote question","startedAt":"2013-06-24T19:53:56Z","lastAt":"2013-06-26T07:01:05Z","messageCount":3,"participants":["Greg Freemyer","Carlos Martín Nieto","Jeff King"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"221889","messageId":"CAGpXXZJuC09t8-5d=p4KNs9rQ-S347eBNuKcKWFhXZTnkLW0sA@mail.gmail.com","threadId":"34270","inReplyTo":"CAGpXXZJifb1KmR8=VZVW+1MKjyo7HOq=OgU_rcHs-vc5ezfG6w@mail.gmail.com","subject":"Basic git-archive --remote question","fromName":"Greg Freemyer","fromEmail":"greg.freemyer@gmail.com","sentAt":"2013-06-24T19:53:56Z","receivedAt":"2013-06-24T19:53:56Z","isPatch":false,"sender":{"key":"greg.freemyer@gmail.com","avatar":null},"body":"I'm trying to create a tarball from a git tag and I can't get the\nsyntax right.  The documentation is not very clear.\n\nCan someone help me?\n\n== details\n\ngit v1.8.1.4\n\nThe upstream git repo is at: https://github.com/dkovar/analyzeMFT\n\nHere's a few attempts using git as the protocol:\n\n> git archive --format=tar --remote=github.com:dkovar/analyzeMFT.git v2.0.4\n\nPermission denied (publickey).\nfatal: The remote end hung up unexpectedly\n\n> git archive --format=tar --remote=git://github.com/dkovar/analyzeMFT v2.0.4\n\nfatal: remote error\n   Your Git client has made an invalid request:\n   003agit-upload-archive /dkovar/analyzeMFT\n\n> git archive --format=tar --remote=//github.com/dkovar/analyzeMFT v2.0.4\n\nremote: fatal: '//github.com/dkovar/analyzeMFT.git' does not appear to\nbe a git repository\nfatal: sent error to the client: git upload-archive: archiver died with error\nremote: git upload-archive: archiver died with error\n\nThe github page also says I can use ssh with git as the user, but that\ncomplains I don't have the private key (which I don't):\n\ngit archive --format=tar\n--remote=ssh://git@github/com/dkovar/analyzeMFT.git v2.0.4\n\n\nThanks\nGreg\n"},{"id":"221940","messageId":"1372166198.20511.5.camel@flaca.cmartin.tk","threadId":"34270","inReplyTo":"CAGpXXZJuC09t8-5d=p4KNs9rQ-S347eBNuKcKWFhXZTnkLW0sA@mail.gmail.com","subject":"Re: Basic git-archive --remote question","fromName":"Carlos Martín Nieto","fromEmail":"cmn@elego.de","sentAt":"2013-06-25T13:16:38Z","receivedAt":"2013-06-25T13:16:38Z","isPatch":false,"sender":{"key":"cmn@elego.de","avatar":"https://avatars.githubusercontent.com/u/335443?v=4"},"body":"On Mon, 2013-06-24 at 15:53 -0400, Greg Freemyer wrote:\n> I'm trying to create a tarball from a git tag and I can't get the\n> syntax right.  The documentation is not very clear.\n> \n> Can someone help me?\n> \n> == details\n> \n> git v1.8.1.4\n> \n> The upstream git repo is at: https://github.com/dkovar/analyzeMFT\n> \n> Here's a few attempts using git as the protocol:\n> \n> > git archive --format=tar --remote=github.com:dkovar/analyzeMFT.git v2.0.4\n> \n> Permission denied (publickey).\n> fatal: The remote end hung up unexpectedly\n\nAssuming you haven't set up any ssh rules for the github.com host,\nyou're trying to log in with ssh with your local username, which isn't\ngoing to work.\n\n> \n> > git archive --format=tar --remote=git://github.com/dkovar/analyzeMFT v2.0.4\n> \n> fatal: remote error\n>    Your Git client has made an invalid request:\n>    003agit-upload-archive /dkovar/analyzeMFT\n> \n\nThis is the right format. GitHub doesn't allow remote archive requests,\nwhich is why it's complaining.\n\nIf you want a tarball from GitHub, you need to download over HTTP from\nthe links they provide (which you can find e.g. through the web UI).\n\n> \n> The github page also says I can use ssh with git as the user, but that\n> complains I don't have the private key (which I don't):\n> \n> git archive --format=tar\n> --remote=ssh://git@github/com/dkovar/analyzeMFT.git v2.0.4\n\nUsing git as the ssh user is the right thing (if you want to talk git\nover ssh) with GitHub and a few other sites/hosting programs, as your\npublic key is used to determine which user is trying to connect without\ngiving each user an account on the underlying OS.\n\n   cmn\n"},{"id":"222010","messageId":"20130626070105.GA5905@sigill.intra.peff.net","threadId":"34270","inReplyTo":"CAGpXXZJuC09t8-5d=p4KNs9rQ-S347eBNuKcKWFhXZTnkLW0sA@mail.gmail.com","subject":"Re: Basic git-archive --remote question","fromName":"Jeff King","fromEmail":"peff@peff.net","sentAt":"2013-06-26T07:01:05Z","receivedAt":"2013-06-26T07:01:05Z","isPatch":false,"sender":{"key":"peff@peff.net","avatar":"https://avatars.githubusercontent.com/u/45925?v=4"},"body":"On Mon, Jun 24, 2013 at 03:53:56PM -0400, Greg Freemyer wrote:\n\n> I'm trying to create a tarball from a git tag and I can't get the\n> syntax right.  The documentation is not very clear.\n> [...]\n> > git archive --format=tar --remote=github.com:dkovar/analyzeMFT.git v2.0.4\n\nYour remote should be git@github.com:dkovar/analyzeMFT.git.\n\nBut...\n\n> > git archive --format=tar --remote=git://github.com/dkovar/analyzeMFT v2.0.4\n> \n> fatal: remote error\n>    Your Git client has made an invalid request:\n>    003agit-upload-archive /dkovar/analyzeMFT\n\nYour syntax is fine, but GitHub does not support remote git-archive\nrequests. Not over git://, and not over ssh. In both cases the error\nmessages are rather confusing and unhelpful, though.\n\n> > git archive --format=tar --remote=//github.com/dkovar/analyzeMFT v2.0.4\n\nThis is wrong, as it is looking for //github.com... in the local\nfilesystem.\n\n> The github page also says I can use ssh with git as the user, but that\n> complains I don't have the private key (which I don't):\n> \n> git archive --format=tar\n> --remote=ssh://git@github/com/dkovar/analyzeMFT.git v2.0.4\n\nIf you have a GitHub account and register your public key, then you can\nuse ssh to fetch from the repository (using the git@github.com:user/repo\nsyntax). However, remote git-archive is not currently supported, so it\nwould not help you.\n\n-Peff\n"}]}