1. 27 Nov, 2012 3 commits
  2. 23 Nov, 2012 1 commit
    • Reset all static variables to NULL in clar's __cleanup · 9094d30b
      Without this change, any failed assertion in the second (or a later) test
      inside a test suite has a chance of double deleting memory, resulting in
      a heap corruption. See #1096 for details.
      
      This leaves alone the test cases where we "just" use cl_git_sandbox_init()
      and cl_git_sandbox_cleanup(). These methods already take good care to not
      double delete a repository.
      
      Fixes #1096
      Sascha Cunz committed
  3. 18 Nov, 2012 1 commit
  4. 11 Nov, 2012 1 commit
  5. 26 Oct, 2012 1 commit
  6. 25 Oct, 2012 2 commits
  7. 20 Oct, 2012 2 commits
  8. 19 Oct, 2012 2 commits
  9. 18 Oct, 2012 2 commits
  10. 15 Oct, 2012 2 commits
    • Fix leak in the tests · 7ae5ab56
      Also introduce the slective ref trimming promised but also missed in
      the previous commit.
      Carlos Martín Nieto committed
    • refs: loosen the OID parsing · 47f44b6e
      We used to require loose references to contain only an OID (possibly
      after trimming the string). This is however not enough for letting us
      lookup FETCH_HEAD, which can have a lot of content after the initial
      OID.
      
      Change the parsing rules so that a loose refernce must e at least 40
      bytes long and the 41st (if it's there) must be accepted by
      isspace(3). This makes the trim unnecessary, so only do it for
      symrefs. This fixes #977.
      Carlos Martín Nieto committed
  11. 11 Oct, 2012 3 commits
  12. 07 Oct, 2012 2 commits
  13. 30 Sep, 2012 1 commit
  14. 25 Sep, 2012 2 commits
  15. 22 Sep, 2012 1 commit
  16. 14 Sep, 2012 1 commit
  17. 13 Sep, 2012 1 commit
  18. 06 Sep, 2012 1 commit
  19. 27 Aug, 2012 2 commits
  20. 25 Aug, 2012 1 commit
  21. 23 Aug, 2012 1 commit
  22. 09 Aug, 2012 2 commits
  23. 04 Aug, 2012 1 commit
    • Update iterators for consistency across library · 5dca2010
      This updates all the `foreach()` type functions across the library
      that take callbacks from the user to have a consistent behavior.
      The rules are:
      
      * A callback terminates the loop by returning any non-zero value
      * Once the callback returns non-zero, it will not be called again
        (i.e. the loop stops all iteration regardless of state)
      * If the callback returns non-zero, the parent fn returns GIT_EUSER
      * Although the parent returns GIT_EUSER, no error will be set in
        the library and `giterr_last()` will return NULL if called.
      
      This commit makes those changes across the library and adds tests
      for most of the iteration APIs to make sure that they follow the
      above rules.
      Russell Belfer committed
  24. 28 Jul, 2012 1 commit
  25. 27 Jul, 2012 2 commits
  26. 25 Jul, 2012 1 commit