summaryrefslogtreecommitdiff
path: root/git-svn.perl
diff options
context:
space:
mode:
authorAlex Vandiver <alex@chmrr.net>2009-12-08 20:54:11 (GMT)
committerEric Wong <normalperson@yhbt.net>2009-12-09 04:39:58 (GMT)
commitf58415096632946b723fa73216ec1d49b4c6bb55 (patch)
tree20d6e9785e63a0299049e1584cc8519305efc70d /git-svn.perl
parent2bc35dcbf7ed702e92b925f8e50afe3632dd211b (diff)
downloadgit-f58415096632946b723fa73216ec1d49b4c6bb55.zip
git-f58415096632946b723fa73216ec1d49b4c6bb55.tar.gz
git-f58415096632946b723fa73216ec1d49b4c6bb55.tar.bz2
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>
Diffstat (limited to 'git-svn.perl')
-rwxr-xr-xgit-svn.perl2
1 files changed, 1 insertions, 1 deletions
diff --git a/git-svn.perl b/git-svn.perl
index dc0e711..a4b052c 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 {