{"thread":{"id":"23618","subject":"How to continue to run 'git svn fetch' for a repo with no git-svn metadata","startedAt":"2010-04-27T09:48:33Z","lastAt":"2010-04-27T16:04:24Z","messageCount":3,"participants":["Ping Yin","Ævar Arnfjörð Bjarmason"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"140487","messageId":"t2u46dff0321004270248l49d1ae30l6b168342e01a5bfd@mail.gmail.com","threadId":"23618","inReplyTo":null,"subject":"How to continue to run 'git svn fetch' for a repo with no git-svn metadata","fromName":"Ping Yin","fromEmail":"pkufranky@gmail.com","sentAt":"2010-04-27T09:48:33Z","receivedAt":"2010-04-27T09:48:33Z","isPatch":false,"sender":{"key":"pkufranky@gmail.com","avatar":"https://avatars.githubusercontent.com/u/5346?v=4"},"body":"I cloned a repo from a central repo which is mirrored by git-svn. Now\ni want to mirror the svn in the cloned local repo by myself, however,\ni don't have the git-svn metadata (which is in the central repo). What\nshould i do to run \"git svn fetch\" without refetching all the\nversions?\n"},{"id":"140520","messageId":"z2l51dd1af81004270751yf026e946p4b00552eaf4f2632@mail.gmail.com","threadId":"23618","inReplyTo":"t2u46dff0321004270248l49d1ae30l6b168342e01a5bfd@mail.gmail.com","subject":"Re: How to continue to run 'git svn fetch' for a repo with no git-svn metadata","fromName":"Ævar Arnfjörð Bjarmason","fromEmail":"avarab@gmail.com","sentAt":"2010-04-27T14:51:29Z","receivedAt":"2010-04-27T14:51:29Z","isPatch":false,"sender":{"key":"avarab@gmail.com","avatar":"https://avatars.githubusercontent.com/u/45301?v=4"},"body":"On Tue, Apr 27, 2010 at 09:48, Ping Yin <pkufranky@gmail.com> wrote:\n> I cloned a repo from a central repo which is mirrored by git-svn. Now\n> i want to mirror the svn in the cloned local repo by myself, however,\n> i don't have the git-svn metadata (which is in the central repo). What\n> should i do to run \"git svn fetch\" without refetching all the\n> versions?\n\nRead these:\n\n    http://code.google.com/p/chromium/wiki/UsingGit#Initial_Setup\n    http://trac.parrot.org/parrot/wiki/git-svn-tutorial\n\nThis should probably be in the git-svn documentation itself.\n"},{"id":"140523","messageId":"n2p46dff0321004270904gc590ef83v4b338719c4c18637@mail.gmail.com","threadId":"23618","inReplyTo":"z2l51dd1af81004270751yf026e946p4b00552eaf4f2632@mail.gmail.com","subject":"Re: How to continue to run 'git svn fetch' for a repo with no git-svn metadata","fromName":"Ping Yin","fromEmail":"pkufranky@gmail.com","sentAt":"2010-04-27T16:04:24Z","receivedAt":"2010-04-27T16:04:24Z","isPatch":false,"sender":{"key":"pkufranky@gmail.com","avatar":"https://avatars.githubusercontent.com/u/5346?v=4"},"body":"On Tue, Apr 27, 2010 at 10:51 PM, Ævar Arnfjörð Bjarmason\n<avarab@gmail.com> wrote:\n> Read these:\n>\n>    http://code.google.com/p/chromium/wiki/UsingGit#Initial_Setup\n>    http://trac.parrot.org/parrot/wiki/git-svn-tutorial\n>\n> This should probably be in the git-svn documentation itself.\n\nThanks. The last link explains very clear. I just copy and paste from it.\n\nAdding git-svn metadata to the github clone\n\nIf you want to re-populate the SVN metadata that can quickly be done\nby taking your up-to-date clone of leto's repo off of gihub and adding\nthis to your .git/config\n\n    [svn-remote \"svn\"]\n            url = https://svn.parrot.org/parrot\n            fetch = trunk:refs/remotes/trunk\nThen run this command to find the \"top commit\"\n\n     git show origin/upstream | head -n 1\nand put that commit hash into a file .git/refs/remotes/trunk\n(obviously replace the has with the one from the above command)\n\n     echo c85aaa38b99cedb087e5f6fb69ce6d4a6ac57a0b > .git/refs/remotes/trunk\nand finally\n\n     git svn fetch\n"}]}