]> git.ipfire.org Git - thirdparty/git.git/commitdiff
git-svn: set svn.authorsfile earlier when cloning
authorAlex Vandiver <alex@chmrr.net>
Tue, 8 Dec 2009 20:54:11 +0000 (15:54 -0500)
committerEric Wong <normalperson@yhbt.net>
Wed, 9 Dec 2009 04:39:58 +0000 (20:39 -0800)
If a clone errors out because of a missing author, or user interrupt,
this allows `git svn fetch` to resume seamlessly, rather than forcing
the user to re-provide the path to the authors file.

[ew: shortened subject]
Signed-off-by: Alex Vandiver <alex@chmrr.net>
Acked-by: Eric Wong <normalperson@yhbt.net>
git-svn.perl

index dc0e711593fec5a2d798f88ad70d20533622c1a2..a4b052c71e9a3b7da1ac95aaf11a206152f8e1a4 100755 (executable)
@@ -394,9 +394,9 @@ sub cmd_clone {
        $path = basename($url) if !defined $path || !length $path;
        my $authors_absolute = $_authors ? File::Spec->rel2abs($_authors) : "";
        cmd_init($url, $path);
-       Git::SVN::fetch_all($Git::SVN::default_repo_id);
        command_oneline('config', 'svn.authorsfile', $authors_absolute)
            if $_authors;
+       Git::SVN::fetch_all($Git::SVN::default_repo_id);
 }
 
 sub cmd_init {