git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Problem with git svn clone --authors-file
@ 2011-10-26 23:51 edman747
  2011-10-27  6:58 ` Michael Haggerty
  0 siblings, 1 reply; 2+ messages in thread
From: edman747 @ 2011-10-26 23:51 UTC (permalink / raw)
  To: git

Hello,
Attempting to clone a remote svn repo where I don't know all the
previous SVN author names.
installed msysgit (vista)
gitbash,
$ mkdir test
$ cd test

create authors file with a few known authors.

$ git svn clone --authors-file=authors http://svn.repo/trunk
...
runs fine until
Author: (no author) not defined in authors file

edit authors file add line: (no author) = none <email>

------
rerun previous git svn command

$ git svn clone --authors-file=authors http://svn.repo/trunk
Using existing [svn-remote "svn"]
svn-remote.svn.fetch already set to track :refs/remotes/git-svn

It stops.
$ vi trunk/.git/config
delete line: fetch = :refs/remotes/git-svn

-----
rerun previous git svn command

$ git svn clone --authors-file=authors http://svn.repo/trunk
...
runs fine until
Author: Bob not defined in authors file

edit authors file add line: Bob = bobby jones <email>

-----
rerun previous git svn command

$ git svn clone --authors-file=authors http://svn.repo/trunk
Using existing [svn-remote "svn"]
svn-remote.svn.fetch already set to track :refs/remotes/git-svn

Each time it encounters an SVN committer name that is not in the
authors-file it aborts. As expected, edit the authors file and re-run
the previous git svn command to continue

And it quits with
svn-remote.svn.fetch already set to track :refs/remotes/git-svn

Would like for it to continue without having to edit the trunk/.get/config file.
Did I miss a flag or option?

Thank You,


>From git-svn(1)
--authors-file=<filename>

Syntx is compatible with the file used by git cvsimport:

loginname

If this option is specified and git svn encounters an SVN committer
name that does not exist in the authors-file, git svn will abort
operation. The user will then have to add the appropriate entry.
Re-running the previous git svn command after the authors-file is
modified should continue operation.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Problem with git svn clone --authors-file
  2011-10-26 23:51 Problem with git svn clone --authors-file edman747
@ 2011-10-27  6:58 ` Michael Haggerty
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Haggerty @ 2011-10-27  6:58 UTC (permalink / raw)
  To: edman747; +Cc: git

On 10/27/2011 01:51 AM, edman747 wrote:
> Hello,
> Attempting to clone a remote svn repo where I don't know all the
> previous SVN author names.
> installed msysgit (vista)
> gitbash,
> $ mkdir test
> $ cd test
> 
> create authors file with a few known authors.
> 
> $ git svn clone --authors-file=authors http://svn.repo/trunk
> ...
> runs fine until
> Author: (no author) not defined in authors file
> 
> edit authors file add line: (no author) = none <email>
> 
> ------
> rerun previous git svn command
> 
> $ git svn clone --authors-file=authors http://svn.repo/trunk
> Using existing [svn-remote "svn"]
> svn-remote.svn.fetch already set to track :refs/remotes/git-svn

I'm not quite sure what your complaint is.

"git svn clone" is equivalent to a "git svn init" followed by "git svn
fetch".  I would have thought that by the time "git svn clone" notices a
problem with the authors file, it would already be in the "git svn
fetch" phase.  So it seems to me that after the first "clone" fails, one
should probably run "git svn fetch" instead of "git svn clone" again.

If this is the case (and the cause of your problem), then the
documentation and error message should be made clearer.

Michael

-- 
Michael Haggerty
mhagger@alum.mit.edu
http://softwareswirl.blogspot.com/

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-10-27  6:58 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-26 23:51 Problem with git svn clone --authors-file edman747
2011-10-27  6:58 ` Michael Haggerty

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).