Don't log as error when git diff is too long (#5113)