Skip to content

Commit f584150

Browse files
alexmvEric Wong
authored andcommitted
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 <[email protected]> Acked-by: Eric Wong <[email protected]>
1 parent 2bc35dc commit f584150

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git-svn.perl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,9 +394,9 @@ sub cmd_clone {
394394
$path = basename($url) if !defined $path || !length $path;
395395
my $authors_absolute = $_authors ? File::Spec->rel2abs($_authors) : "";
396396
cmd_init($url, $path);
397-
Git::SVN::fetch_all($Git::SVN::default_repo_id);
398397
command_oneline('config', 'svn.authorsfile', $authors_absolute)
399398
if $_authors;
399+
Git::SVN::fetch_all($Git::SVN::default_repo_id);
400400
}
401401

402402
sub cmd_init {

0 commit comments

Comments
 (0)