summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f9ad77a)
raw | patch | inline | side by side (parent: f9ad77a)
author | Alex Vandiver <alex@chmrr.net> | |
Tue, 8 Dec 2009 20:54:10 +0000 (15:54 -0500) | ||
committer | Eric Wong <normalperson@yhbt.net> | |
Wed, 9 Dec 2009 04:38:39 +0000 (20:38 -0800) |
If --authors-file is passed a relative path, cloning will work, but
future `git svn fetch`es will fail to locate the authors file
correctly. Thus, use File::Spec->rel2abs to determine an absolute
path for the authors file before setting it.
Signed-off-by: Alex Vandiver <alex@chmrr.net>
Acked-by: Eric Wong <normalperson@yhbt.net>
future `git svn fetch`es will fail to locate the authors file
correctly. Thus, use File::Spec->rel2abs to determine an absolute
path for the authors file before setting it.
Signed-off-by: Alex Vandiver <alex@chmrr.net>
Acked-by: Eric Wong <normalperson@yhbt.net>
git-svn.perl | patch | blob | history |
diff --git a/git-svn.perl b/git-svn.perl
index 5a52068b129f6ab5daa76dc4da57c2e2fe2d8591..dc0e711593fec5a2d798f88ad70d20533622c1a2 100755 (executable)
--- a/git-svn.perl
+++ b/git-svn.perl
$path = $url;
}
$path = basename($url) if !defined $path || !length $path;
+ my $authors_absolute = $_authors ? File::Spec->rel2abs($_authors) : "";
cmd_init($url, $path);
Git::SVN::fetch_all($Git::SVN::default_repo_id);
- command_oneline('config', 'svn.authorsfile', $_authors) if $_authors;
+ command_oneline('config', 'svn.authorsfile', $authors_absolute)
+ if $_authors;
}
sub cmd_init {