Merge git://git.bogomips.org/git-svn
authorJunio C Hamano <gitster@pobox.com>
Wed, 9 Dec 2009 05:59:04 +0000 (21:59 -0800)
committerJunio C Hamano <gitster@pobox.com>
Wed, 9 Dec 2009 05:59:04 +0000 (21:59 -0800)
* 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

git-svn.perl
index 5a52068b129f6ab5daa76dc4da57c2e2fe2d8591..a4b052c71e9a3b7da1ac95aaf11a206152f8e1a4 100755 (executable)
@@ -392,9 +392,11 @@ sub cmd_clone {
                $path = $url;
        }
        $path = basename($url) if !defined $path || !length $path;
+       my $authors_absolute = $_authors ? File::Spec->rel2abs($_authors) : "";
        cmd_init($url, $path);
+       command_oneline('config', 'svn.authorsfile', $authors_absolute)
+           if $_authors;
        Git::SVN::fetch_all($Git::SVN::default_repo_id);
-       command_oneline('config', 'svn.authorsfile', $_authors) if $_authors;
 }
 
 sub cmd_init {