Skip to content
Snippets Groups Projects
  1. Apr 17, 2018
  2. Apr 05, 2018
  3. Mar 16, 2018
  4. Mar 15, 2018
  5. Mar 09, 2018
  6. Mar 08, 2018
  7. Feb 22, 2018
    • Sean McGivern's avatar
      Fix 500 error when diff context line has broken encoding · cdf3ae04
      Sean McGivern authored
      Rugged sometimes chops a context line in between bytes, resulting in the context
      line having an invalid encoding: https://github.com/libgit2/rugged/issues/716
      
      When that happens, we will try to detect the encoding for the diff, and
      sometimes we'll get it wrong. If that difference in encoding results in a
      difference in string lengths between the diff and the underlying blobs, we'd
      fail to highlight any inline diffs, and return a 500 status to the user.
      
      As we're using the underlying blobs, the encoding is 'correct' anyway, so if the
      string range is invalid, we can just discard the inline diff highlighting. We
      still report to Sentry to ensure that we can investigate further in future.
      cdf3ae04
  8. Jan 11, 2018
  9. Jan 04, 2018
    • Sean McGivern's avatar
      Fix error when viewing diffs without blobs · 528b5eeb
      Sean McGivern authored
      Old merge requests can have diffs without corresponding blobs. (This also may be
      possible for commit diffs in corrupt repositories.)
      
      We can't use the `&.` operator on the blobs, because the blob objects are never
      nil, but `BatchLoader` instances that delegate to `Blob`. We can't use
      `Object#try`, because `Blob` doesn't inherit from `Object`.
      
      `BatchLoader` provides a `__sync` method that returns the delegated object, but
      using `itself` also works because it's forwarded, and will work for
      non-`BatchLoader` instances too. So the simplest solution is to just use that
      with the `&.` operator.
      528b5eeb
  10. Dec 22, 2017
  11. Dec 07, 2017
  12. Nov 21, 2017
  13. Nov 16, 2017
  14. Oct 30, 2017
  15. Oct 15, 2017
  16. Oct 13, 2017
  17. Oct 07, 2017
  18. Sep 25, 2017
  19. Sep 21, 2017
  20. Sep 19, 2017
  21. Sep 12, 2017
  22. Aug 24, 2017
    • Sean McGivern's avatar
      Show un-highlighted diffs when blobs are the same · e8525e10
      Sean McGivern authored
      For some old merge requests, we don't have enough information to figure out the
      old blob and the new blob for the file. This means that we can't highlight the
      diff correctly, but we can still display it without highlighting.
      e8525e10
  23. Aug 22, 2017
    • Sean McGivern's avatar
      Always return a simple diff viewer · b0f09406
      Sean McGivern authored
      We didn't have a fallback case before, because we believed the conditions were
      exhaustive. They weren't, so we can always fallback to not previewing.
      b0f09406
  24. Aug 14, 2017
  25. Aug 08, 2017
  26. Jul 31, 2017
  27. Jun 19, 2017
  28. Jun 14, 2017
  29. Jun 08, 2017
  30. Jun 06, 2017
  31. May 31, 2017
  32. May 29, 2017
  33. May 25, 2017
  34. May 24, 2017
Loading