git-svn: set svn.authorsfile earlier when cloning
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>
Alex Vandiver committed
Dec 8, 2009 at 15:54 UTC
f58415096632946b723fa73216ec1d49b4c6bb55
1 file changed
+1
-1
git-svn.perl
+1
-1
@@ -394,9 +394,9 @@ sub cmd_clone {
394
$path = basename($url) if !defined $path || !length $path;
395
my $authors_absolute = $_authors ? File::Spec->rel2abs($_authors) : "";
396
cmd_init($url, $path);
397
- Git::SVN::fetch_all($Git::SVN::default_repo_id);
397
command_oneline('config', 'svn.authorsfile', $authors_absolute)
398
if $_authors;
399
+ Git::SVN::fetch_all($Git::SVN::default_repo_id);
400
}
401
402
sub cmd_init {