From: Alex Vandiver Date: Tue, 8 Dec 2009 20:54:11 +0000 (-0500) Subject: git-svn: set svn.authorsfile earlier when cloning X-Git-Tag: v1.6.6-rc2~5^2 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=f58415096632946b723fa73216ec1d49b4c6bb55;p=git.git 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 Acked-by: Eric Wong --- diff --git a/git-svn.perl b/git-svn.perl index dc0e71159..a4b052c71 100755 --- a/git-svn.perl +++ b/git-svn.perl @@ -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 {