{"thread":{"id":"28775","subject":"Problem with git svn clone --authors-file","startedAt":"2011-10-26T23:51:04Z","lastAt":"2011-10-27T06:58:17Z","messageCount":2,"participants":["edman747","Michael Haggerty"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"178338","messageId":"CABDh3gSsi9xwvw-6stw7URGK112LvF8Rt4XJeTwGM3q-tML=2Q@mail.gmail.com","threadId":"28775","inReplyTo":null,"subject":"Problem with git svn clone --authors-file","fromName":"edman747","fromEmail":"edman747@gmail.com","sentAt":"2011-10-26T23:51:04Z","receivedAt":"2011-10-26T23:51:04Z","isPatch":false,"sender":{"key":"edman747@gmail.com","avatar":null},"body":"Hello,\nAttempting to clone a remote svn repo where I don't know all the\nprevious SVN author names.\ninstalled msysgit (vista)\ngitbash,\n$ mkdir test\n$ cd test\n\ncreate authors file with a few known authors.\n\n$ git svn clone --authors-file=authors http://svn.repo/trunk\n...\nruns fine until\nAuthor: (no author) not defined in authors file\n\nedit authors file add line: (no author) = none <email>\n\n------\nrerun previous git svn command\n\n$ git svn clone --authors-file=authors http://svn.repo/trunk\nUsing existing [svn-remote \"svn\"]\nsvn-remote.svn.fetch already set to track :refs/remotes/git-svn\n\nIt stops.\n$ vi trunk/.git/config\ndelete line: fetch = :refs/remotes/git-svn\n\n-----\nrerun previous git svn command\n\n$ git svn clone --authors-file=authors http://svn.repo/trunk\n...\nruns fine until\nAuthor: Bob not defined in authors file\n\nedit authors file add line: Bob = bobby jones <email>\n\n-----\nrerun previous git svn command\n\n$ git svn clone --authors-file=authors http://svn.repo/trunk\nUsing existing [svn-remote \"svn\"]\nsvn-remote.svn.fetch already set to track :refs/remotes/git-svn\n\nEach time it encounters an SVN committer name that is not in the\nauthors-file it aborts. As expected, edit the authors file and re-run\nthe previous git svn command to continue\n\nAnd it quits with\nsvn-remote.svn.fetch already set to track :refs/remotes/git-svn\n\nWould like for it to continue without having to edit the trunk/.get/config file.\nDid I miss a flag or option?\n\nThank You,\n\n\n>From git-svn(1)\n--authors-file=<filename>\n\nSyntx is compatible with the file used by git cvsimport:\n\nloginname\n\nIf this option is specified and git svn encounters an SVN committer\nname that does not exist in the authors-file, git svn will abort\noperation. The user will then have to add the appropriate entry.\nRe-running the previous git svn command after the authors-file is\nmodified should continue operation.\n"},{"id":"178343","messageId":"4EA90109.4070504@alum.mit.edu","threadId":"28775","inReplyTo":"CABDh3gSsi9xwvw-6stw7URGK112LvF8Rt4XJeTwGM3q-tML=2Q@mail.gmail.com","subject":"Re: Problem with git svn clone --authors-file","fromName":"Michael Haggerty","fromEmail":"mhagger@alum.mit.edu","sentAt":"2011-10-27T06:58:17Z","receivedAt":"2011-10-27T06:58:17Z","isPatch":false,"sender":{"key":"mhagger@alum.mit.edu","avatar":"https://avatars.githubusercontent.com/u/119718?v=4"},"body":"On 10/27/2011 01:51 AM, edman747 wrote:\n> Hello,\n> Attempting to clone a remote svn repo where I don't know all the\n> previous SVN author names.\n> installed msysgit (vista)\n> gitbash,\n> $ mkdir test\n> $ cd test\n> \n> create authors file with a few known authors.\n> \n> $ git svn clone --authors-file=authors http://svn.repo/trunk\n> ...\n> runs fine until\n> Author: (no author) not defined in authors file\n> \n> edit authors file add line: (no author) = none <email>\n> \n> ------\n> rerun previous git svn command\n> \n> $ git svn clone --authors-file=authors http://svn.repo/trunk\n> Using existing [svn-remote \"svn\"]\n> svn-remote.svn.fetch already set to track :refs/remotes/git-svn\n\nI'm not quite sure what your complaint is.\n\n\"git svn clone\" is equivalent to a \"git svn init\" followed by \"git svn\nfetch\".  I would have thought that by the time \"git svn clone\" notices a\nproblem with the authors file, it would already be in the \"git svn\nfetch\" phase.  So it seems to me that after the first \"clone\" fails, one\nshould probably run \"git svn fetch\" instead of \"git svn clone\" again.\n\nIf this is the case (and the cause of your problem), then the\ndocumentation and error message should be made clearer.\n\nMichael\n\n-- \nMichael Haggerty\nmhagger@alum.mit.edu\nhttp://softwareswirl.blogspot.com/\n"}]}