SourceGitweb: #1048: Column 'author' cannot be null
Created by: hakankpunkt
#1048: Column 'author' cannot be null error occures when trying to import changesets with Gitweb.
Problem is in commit_changeset( ) where newline chars are stripped off of the input string, but the regexp is checking for a newline.
Proposed fix is to change the \n to \s* in preg_match( '#
author(?:<a[^>]>)?([^<>])(?:)? (?:<a[^>]>)?<([^<>])>(?:)?(?:<[^<>]>\s)?\n\w_, (\d_ \w* \d* \d_:\d_:\d*)#', $t_gitweb_data, $t_matches );I am proposing \s* for better readability when checking the actual output of Gitweb.
Same problem happens with preg_match( '#
\n(.*)\n
#', $t_gitweb_data, $t_matches );
Changing the \n to \s* fixes the problem