aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2009-12-08 21:59:04 -0800
committerJunio C Hamano <gitster@pobox.com>2009-12-08 21:59:04 -0800
commitca83dc53916d485e6654c6cce701794dd3a1ed32 (patch)
tree2da96e1f2cca86a6544b27d8f3d4fcdd486be10f
parent77c29b4acae2f129f71e4856b8d0518982802d83 (diff)
parentf58415096632946b723fa73216ec1d49b4c6bb55 (diff)
downloadgit-ca83dc53916d485e6654c6cce701794dd3a1ed32.tar.gz
git-ca83dc53916d485e6654c6cce701794dd3a1ed32.tar.xz
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
-rwxr-xr-xgit-svn.perl4
1 files changed, 3 insertions, 1 deletions
diff --git a/git-svn.perl b/git-svn.perl
index 5a52068b1..a4b052c71 100755
--- a/git-svn.perl
+++ b/git-svn.perl
@@ -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 {