git-remote-mediawiki: change the behaviour of a split
[gitweb.git] / contrib / mw-to-git / git-remote-mediawiki.perl
index b65e71c1207784590a1a9db45c20073dc8b73d13..74344f63dbe55cfc58f26e6b1749a49d63a03b38 100755 (executable)
@@ -1168,7 +1168,7 @@ sub mw_push_revision {
                my %local_ancestry;
                foreach my $line (@local_ancestry) {
                        if (my ($child, $parents) = $line =~ /^-?([a-f0-9]+) ([a-f0-9 ]+)/) {
-                               foreach my $parent (split(' ', $parents)) {
+                               foreach my $parent (split(/ /, $parents)) {
                                        $local_ancestry{$parent} = $child;
                                }
                        } elsif (!$line =~ /^([a-f0-9]+)/) {