you need to use the merge request method of gitlab. When you try new Merge Request, the gitlab page reports an error. After viewing the gitlab backend log, you can see
"Rugged::OdbError (Failed to parse commit aef3846d6401d68asdfsdf281c39cb584b812d-cannot parse commit time):
app/services/compare_service.rb:11:in `new"
app/services/compare_service.rb:11:in `execute"
app/controllers/projects/compare_controller.rb:13:in `show""
look at this commit, author_date and commiter_date are 2099 (yes, the project was open to modification, the developer changed the local date for self-test, and forgot to change it back when commit). All in all, there are some commit on this project that are after the current date, and it is estimated that this date has affected compare, now trying to change them back.
looked at a lot of materials and thought that git filter-branch should be able to solve this problem. I tried the following script:
git filter-branch -f --env-filter "
if [ $GIT_COMMIT = aef3846d6401d68asdfsdf281c39cb584b812d ]
then
export GIT_AUTHOR_DATE="Mon Jun 25 14:13:00 CST 2018"
export GIT_COMMITER_DATE="Mon Jun 25 14:13:00 CST 2018"
fi"
however, it didn"t work, and the script finished running normally, and the date didn"t change.
are there any brothers who have dealt with similar problems for advice!