1. Jun 16, 2015
  2. Jun 15, 2015
  3. Jun 13, 2015
  4. Jun 12, 2015
  5. Jun 11, 2015
  6. Jun 10, 2015
    • Edward Thomson's avatar
      Merge pull request #3201 from libgit2/cmn/coverity · da6720fc
      Edward Thomson authored
      A few more fixes from coverity
      da6720fc
    • Carlos Martín Nieto's avatar
      filter: close the descriptor in case of error · 0137aba5
      Carlos Martín Nieto authored
      When we hit an error writing to the next stream from a file, we jump to
      'done' which currently skips over closing the file descriptor.
      
      Make sure to close the descriptor if it has been set to a valid value.
      0137aba5
    • Carlos Martín Nieto's avatar
      object: correct the expected ID size in prefix lookup · 969d4b70
      Carlos Martín Nieto authored
      We take in a possibly partial ID by taking a length and working off of
      that to figure out whether to just look up the object or ask the
      backends for a prefix lookup.
      
      Unfortunately we've been checking the size against `GIT_OID_HEXSZ` which
      is the size of a *string* containing a full ID, whereas we need to check
      against the size we can have when it's a 20-byte array.
      
      Change the checks and comment to use `GIT_OID_RAWSZ` which is the
      correct size of a git_oid to have when full.
      969d4b70
    • Carlos Martín Nieto's avatar
      pack: use git_buf when building the index name · 878293f7
      Carlos Martín Nieto authored
      The way we currently do it depends on the subtlety of strlen vs sizeof
      and the fact that .pack is one longer than .idx. Let's use a git_buf so
      we can express the manipulation we want much more clearly.
      878293f7
    • Carlos Martín Nieto's avatar
      merge: actually increment the counts, not the pointers · ca2857d8
      Carlos Martín Nieto authored
      `merge_diff_list_count_candidates()` takes pointers to the source and
      target counts, but when it comes time to increase them, we're increasing
      the pointer, rather than the value it's pointing to.
      
      Dereference the value to increase.
      ca2857d8