mirror of
https://github.com/git/git.git
synced 2024-11-24 10:26:17 +08:00
git-svn: gracefully handle --follow-parent failures
We don't always know that a path will exist at a particular revision. Signed-off-by: Eric Wong <normalperson@yhbt.net>
This commit is contained in:
parent
9760adcccc
commit
c7eba7163b
@ -1055,8 +1055,11 @@ sub find_parent_branch {
|
||||
my ($self, $paths, $rev) = @_;
|
||||
return undef unless $_follow_parent;
|
||||
unless (defined $paths) {
|
||||
my $err_handler = $SVN::Error::handler;
|
||||
$SVN::Error::handler = \&Git::SVN::Ra::skip_unknown_revs;
|
||||
$self->ra->get_log([$self->{path}], $rev, $rev, 0, 1, 1,
|
||||
sub { $paths = dup_changed_paths($_[0]) });
|
||||
$SVN::Error::handler = $err_handler;
|
||||
}
|
||||
return undef unless defined $paths;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user