mirror of
https://github.com/git/git.git
synced 2024-11-24 10:26:17 +08:00
git-svn: error checking for invalid [svn-remote "..."] sections
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>
This commit is contained in:
parent
e8d120bd5a
commit
7447b4bc83
@ -753,9 +753,10 @@ sub parse_revision_argument {
|
||||
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user