{"thread":{"id":"23877","subject":"export one commit id from a repository","startedAt":"2010-05-22T13:41:26Z","lastAt":"2010-05-23T10:08:50Z","messageCount":3,"participants":["Gelonida","Abhijit Menon-Sen"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"142099","messageId":"ht8mu6$hjo$1@dough.gmane.org","threadId":"23877","inReplyTo":null,"subject":"export one commit id from a repository","fromName":"Gelonida","fromEmail":"gelonida@gmail.com","sentAt":"2010-05-22T13:41:26Z","receivedAt":"2010-05-22T13:41:26Z","isPatch":false,"sender":{"key":"gelonida@gmail.com","avatar":null},"body":"Hi,\n\nI'm having a bare git repository on a server.\n\nI'd like to be able to concurrently (multiuser) create tar files from\ncertain commmit ids.\n\nHow can I do this most efficiently.\n\n\nHow I do this today:\n- ssh to the server.\n- clone the bare repository to a temp directory.\n- checkout a certain version.\n- remove the .git directory\n- tar it up\n- scp it to my local host\n- remove the temp directory and the tar file\n\nsvn had the command 'export'\n\n\nThanks a lot for help or pointing me to existing scripts / tools.\n"},{"id":"142100","messageId":"20100522135047.GA10999@toroid.org","threadId":"23877","inReplyTo":"ht8mu6$hjo$1@dough.gmane.org","subject":"Re: export one commit id from a repository","fromName":"Abhijit Menon-Sen","fromEmail":"ams@toroid.org","sentAt":"2010-05-22T13:50:47Z","receivedAt":"2010-05-22T13:50:47Z","isPatch":false,"sender":{"key":"ams@toroid.org","avatar":null},"body":"At 2010-05-22 15:41:26 +0200, gelonida@gmail.com wrote:\n>\n> I'd like to be able to concurrently (multiuser) create tar files from\n> certain commmit ids.\n\ngit archive --prefix=foo/ $sha1 | gzip > foo.tar.gz\n\nSee git-archive(1).\n\n-- ams\n"},{"id":"142143","messageId":"htauri$17m$1@dough.gmane.org","threadId":"23877","inReplyTo":"20100522135047.GA10999@toroid.org","subject":"Re: export one commit id from a repository","fromName":"Gelonida","fromEmail":"gelonida@gmail.com","sentAt":"2010-05-23T10:08:50Z","receivedAt":"2010-05-23T10:08:50Z","isPatch":false,"sender":{"key":"gelonida@gmail.com","avatar":null},"body":"Thanks a lot for your answer.\n\nThat's what I was looking for :-)\n\nAbhijit Menon-Sen wrote:\n> At 2010-05-22 15:41:26 +0200, gelonida@gmail.com wrote:\n>> I'd like to be able to concurrently (multiuser) create tar files from\n>> certain commmit ids.\n> \n> git archive --prefix=foo/ $sha1 | gzip > foo.tar.gz\n> \n> See git-archive(1).\n> \n> -- ams\n"}]}