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>
This commit is contained in:
parent
2bc35dcbf7
commit
f584150966
@ -394,9 +394,9 @@ sub cmd_clone {
|
|||||||
$path = basename($url) if !defined $path || !length $path;
|
$path = basename($url) if !defined $path || !length $path;
|
||||||
my $authors_absolute = $_authors ? File::Spec->rel2abs($_authors) : "";
|
my $authors_absolute = $_authors ? File::Spec->rel2abs($_authors) : "";
|
||||||
cmd_init($url, $path);
|
cmd_init($url, $path);
|
||||||
Git::SVN::fetch_all($Git::SVN::default_repo_id);
|
|
||||||
command_oneline('config', 'svn.authorsfile', $authors_absolute)
|
command_oneline('config', 'svn.authorsfile', $authors_absolute)
|
||||||
if $_authors;
|
if $_authors;
|
||||||
|
Git::SVN::fetch_all($Git::SVN::default_repo_id);
|
||||||
}
|
}
|
||||||
|
|
||||||
sub cmd_init {
|
sub cmd_init {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user