Commit 1cd83d20 authored by Marco Villegas's avatar Marco Villegas
Browse files

Issue #1075702: Fixed Commits page does not preserve line breaks in commit messages.

parent a49356ac
Loading
Loading
Loading
Loading
+1 −4
Changes for versioncontrol_git.log.inc: 1 added line, 4 removed lines.
Original line number Diff line number Diff line
@@ -86,7 +86,7 @@ function _versioncontrol_git_log_update_repository(VersioncontrolGitRepository &

  // Insert new commits in the database.
  foreach ($commits_new as $hash) {
    $command = "show --numstat --summary --pretty=format:\"%H%n%P%n%an%n%ae%n%cn%n%ce%n%ct%n%s%n%b%nENDOFOUTPUTGITMESSAGEHERE\" " . escapeshellarg($hash);
    $command = "show --numstat --summary --pretty=format:\"%H%n%P%n%an%n%ae%n%cn%n%ce%n%ct%n%B%nENDOFOUTPUTGITMESSAGEHERE\" " . escapeshellarg($hash);
    $output = _versioncontrol_git_log_exec($command);
    _versioncontrol_git_log_parse_and_insert_commit($repository, $output, $branches_in_db_by_name);
  }
@@ -342,9 +342,6 @@ function _versioncontrol_git_log_parse_and_insert_commit(VersioncontrolRepositor
      }
      break;
    }
    if ($i == 1) {
      $message .= "\n";
    }
    $message .= $line ."\n";
    $i++;
  }