summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2009-12-08 21:59:04 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2009-12-08 21:59:04 -0800
commitca83dc53916d485e6654c6cce701794dd3a1ed32 (patch)
tree2da96e1f2cca86a6544b27d8f3d4fcdd486be10f
parentRevert recent "git merge <msg> HEAD <commit>..." deprecation (diff)
parentgit-svn: set svn.authorsfile earlier when cloning (diff)
downloadtgif-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 5a52068b12..a4b052c71e 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 {