git-remote-mediawiki: make a regexp clearer
[gitweb.git] / contrib / mw-to-git / git-remote-mediawiki.perl
index 717387275cdb0fd7e4999503cd53261e11f851a1..882da1b885f8ad9f3db436efae9bfd43f46e5552 100755 (executable)
@@ -1170,7 +1170,7 @@ sub mw_push_revision {
                # history (linearized with --first-parent)
                print STDERR "Warning: no common ancestor, pushing complete history\n";
                my $history = run_git("rev-list --first-parent --children $local");
-               my @history = split('\n', $history);
+               my @history = split(/\n/, $history);
                @history = @history[1..$#history];
                foreach my $line (reverse @history) {
                        my @commit_info_split = split(/ |\n/, $line);