Skip to content

Commit ca83dc5

Browse files
committed
Merge git://git.bogomips.org/git-svn
* git://git.bogomips.org/git-svn: git-svn: set svn.authorsfile earlier when cloning git-svn: Set svn.authorsfile to an absolute path when cloning
2 parents 77c29b4 + f584150 commit ca83dc5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

git-svn.perl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -392,9 +392,11 @@ sub cmd_clone {
392392
$path = $url;
393393
}
394394
$path = basename($url) if !defined $path || !length $path;
395+
my $authors_absolute = $_authors ? File::Spec->rel2abs($_authors) : "";
395396
cmd_init($url, $path);
397+
command_oneline('config', 'svn.authorsfile', $authors_absolute)
398+
if $_authors;
396399
Git::SVN::fetch_all($Git::SVN::default_repo_id);
397-
command_oneline('config', 'svn.authorsfile', $_authors) if $_authors;
398400
}
399401

400402
sub cmd_init {

0 commit comments

Comments
 (0)