{"thread":{"id":"20194","subject":"git-svn wowes","startedAt":"2009-07-22T13:55:11Z","lastAt":"2009-07-23T08:12:08Z","messageCount":3,"participants":["Aaron Gray","Sverre Rabbelier","Eric Wong"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"118460","messageId":"025FAAA7CA644D709E1635C497753444@HPLAPTOP","threadId":"20194","inReplyTo":null,"subject":"git-svn wowes","fromName":"Aaron Gray","fromEmail":"aaronngray.lists@googlemail.com","sentAt":"2009-07-22T13:55:11Z","receivedAt":"2009-07-22T13:55:11Z","isPatch":false,"sender":{"key":"aaronngray.lists@googlemail.com","avatar":null},"body":"Hi,\n\nI have a working git-svn clone of a svn based project.\n\nAt the mement I have a .sh script run every hour which goes :-\n\n    git svn fetch\n    git reset -- hard HEAD\n    git svn rebase\n\nI am sure this is like using a hammer to crack a nut.\n\nIs there a better way to do this ?\n\nMany thanks in advance,\n\nAaron\n"},{"id":"118476","messageId":"fabb9a1e0907221124u345bc572mfcead0468306b6e5@mail.gmail.com","threadId":"20194","inReplyTo":"025FAAA7CA644D709E1635C497753444@HPLAPTOP","subject":"Re: git-svn wowes","fromName":"Sverre Rabbelier","fromEmail":"srabbelier@gmail.com","sentAt":"2009-07-22T18:24:07Z","receivedAt":"2009-07-22T18:24:07Z","isPatch":false,"sender":{"key":"srabbelier@gmail.com","avatar":"https://avatars.githubusercontent.com/u/3098?v=4"},"body":"Heya,\n\nOn Wed, Jul 22, 2009 at 13:55, Aaron\nGray<aaronngray.lists@googlemail.com> wrote:\n>   git svn rebase\n\nShould be enough ('git svn rebase' runs 'git svn fetch' first),\nassuming you don't touch the working directory, which you probably\ndon't considering that your script blasts away all changes every hour.\n\n-- \nCheers,\n\nSverre Rabbelier\n"},{"id":"118567","messageId":"20090723081208.GB32287@dcvr.yhbt.net","threadId":"20194","inReplyTo":"025FAAA7CA644D709E1635C497753444@HPLAPTOP","subject":"Re: git-svn wowes","fromName":"Eric Wong","fromEmail":"normalperson@yhbt.net","sentAt":"2009-07-23T08:12:08Z","receivedAt":"2009-07-23T08:12:08Z","isPatch":false,"sender":{"key":"e@80x24.org","avatar":null},"body":"Aaron Gray <aaronngray.lists@googlemail.com> wrote:\n> Hi,\n>\n> I have a working git-svn clone of a svn based project.\n>\n> At the mement I have a .sh script run every hour which goes :-\n>\n>    git svn fetch\n>    git reset -- hard HEAD\n>    git svn rebase\n>\n> I am sure this is like using a hammer to crack a nut.\n>\n> Is there a better way to do this ?\n\nAssuming you don't make your own local changes ever:\n\n  git svn fetch\n  git reset --hard $ref\n\nWhere $ref is most likely \"trunk\" if you used -s/--stdlayout or\n\"git-svn\" if you did not.  Running `git branch -r' will give you\na list of remote refs that you can reset to.\n\n-- \nEric Wong\n"}]}