Skip to content

Commit

Permalink
[backend] improve last Srcdiff commit
Browse files Browse the repository at this point in the history
  • Loading branch information
mlschroe committed Sep 24, 2013
1 parent 7e4fc02 commit 17d5c56
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/backend/BSSrcdiff.pm
Expand Up @@ -297,7 +297,7 @@ sub stripfirstdir {
my ($l) = @_;
return unless @$l;
my $l1 = $l->[0]->{'sname'};
return unless $l1 =~ s/\/.*//;
$l1 =~ s/\/.*//s;
return if grep {!($_->{'sname'} eq $l1 || $_->{'sname'} =~ /^\Q$l1\E\//)} @$l;
$_->{'sname'} =~ s/^[^\/]*\/?// for @$l;
}
Expand Down

0 comments on commit 17d5c56

Please sign in to comment.