summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e8d120b)
raw | patch | inline | side by side (parent: e8d120b)
author | Eric Wong <normalperson@yhbt.net> | |
Thu, 15 Feb 2007 02:38:46 +0000 (18:38 -0800) | ||
committer | Eric Wong <normalperson@yhbt.net> | |
Fri, 23 Feb 2007 08:57:13 +0000 (00:57 -0800) |
We don't end up trying to pass an undef URL over to SVN::Ra->new
because it'll segfault.
Signed-off-by: Eric Wong <normalperson@yhbt.net>
because it'll segfault.
Signed-off-by: Eric Wong <normalperson@yhbt.net>
git-svn.perl | patch | blob | history |
diff --git a/git-svn.perl b/git-svn.perl
index ace31021e745e36deadc19925bd6957530165a1e..201418e09c3168b683052ad8fdeccaf84a9330d3 100755 (executable)
--- a/git-svn.perl
+++ b/git-svn.perl
sub fetch_all {
my ($repo_id, $remotes) = @_;
- my $remote = $remotes->{$repo_id};
+ my $remote = $remotes->{$repo_id} or
+ die "[svn-remote \"$repo_id\"] unknown\n";
my $fetch = $remote->{fetch};
- my $url = $remote->{url};
+ my $url = $remote->{url} or die "svn-remote.$repo_id.url not defined\n";
my (@gs, @globs);
my $ra = Git::SVN::Ra->new($url);
my $uuid = $ra->get_uuid;