1. 12 Feb, 2022 2 commits
    • diff_file: Apply suggestions from code review · 3bac68ff
      Skip new_file_size non-zero test, custom error message if file changed in workdir
      
      Co-authored-by: Edward Thomson <ethomson@github.com>
      Iliyas Jorio committed
    • diff_file: fix crash if size of diffed file changes in workdir · 0a0cd67d
      "diff_file_content_load_workdir_file()" maps a file from the workdir
      into memory. It uses git_diff_file.size to determine the size of the
      memory mapping.
      
      If this value goes stale, the mmaped area would be sized incorrectly.
      This could occur if an external program changes the contents of the
      file after libgit2 had cached its size. This used to segfault if the
      file becomes smaller (mmaped area too large).
      
      This patch causes diff_file_content_load_workdir_file to fail without
      crashing if it detects that the file size has changed.
      Iliyas Jorio committed
  2. 11 Feb, 2022 1 commit
  3. 09 Feb, 2022 2 commits
  4. 08 Feb, 2022 2 commits
  5. 07 Feb, 2022 2 commits
    • push: Prepare pack before sending pack header. · 19ec5923
      For large pushes, preparing the pack can take a while. Currently we
      send the pack header first, followed by preparing the pack and then
      finally sending the pack. Unfortunately github.com will terminate
      a git-receive-pack command over http if it is idle for more than 10
      seconds. This is easily exceeded for a large push, and so the push is
      rejected with a Broken Pipe error.
      
      This patch moves the pack preparation ahead of sending the pack header,
      so that the timeout is avoided.
      
      prepare_pack() can be called multiple times but will only do the work
      once, so the original PREPARE_PACK call inside git_packbuilder_foreach()
      remains.
      Colin Stolley committed
  6. 06 Feb, 2022 6 commits
  7. 05 Feb, 2022 3 commits
  8. 03 Feb, 2022 5 commits
  9. 31 Jan, 2022 7 commits
  10. 30 Jan, 2022 6 commits
  11. 28 Jan, 2022 4 commits