This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ubuntu@ip-10-0-2-44:/home/git/gitlab$ sudo -u git -H bundle exec rake migrate_merge_requests RAILS_ENV=production --trace | |
sudo: unable to resolve host ip-10-0-2-44 | |
** Invoke migrate_merge_requests (first_time) | |
** Invoke environment (first_time) | |
** Execute environment | |
** Execute migrate_merge_requests | |
Since 5.1 old merge request serialization logic was replaced with a better one. | |
It makes old merge request diff invalid for GitLab 5.1+ | |
* * * | |
This will rebuild commits/diffs info for existing merge requests. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Matches HTML comments <!-- --> | |
// Matches double slash | |
// Matches C like comments /* */ | |
var fs = require('fs'); | |
var jsonlint = require('jsonlint'); | |
var file = process.argv[2]; | |
if(!file) { | |
return console.log("Must supply path to file."); |