diff options
author | Junio C Hamano <gitster@pobox.com> | 2009-12-08 21:59:04 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-12-08 21:59:04 -0800 |
commit | ca83dc53916d485e6654c6cce701794dd3a1ed32 (patch) | |
tree | 2da96e1f2cca86a6544b27d8f3d4fcdd486be10f | |
parent | Revert recent "git merge <msg> HEAD <commit>..." deprecation (diff) | |
parent | git-svn: set svn.authorsfile earlier when cloning (diff) | |
download | tgif-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-x | git-svn.perl | 4 |
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 { |