1. 28 Aug, 2012 1 commit
    • ssl: make cert check ignore work for invalid certs, not just CNs · 0d5dce26
      Passing SSL_VERIFY_PEER makes OpenSSL shut down the connection if the
      certificate is invalid, without giving us a chance to ignore that
      error. Pass SSL_VERIFY_NONE and call SSL_get_verify_result if the user
      wanted us to check.
      
      When no CNs match, we used to jump to on_error which gave a bogus
      error as that's for OpenSSL errors. Jump to cert_fail so we tell the
      user that the error came from checking the certificate.
      Carlos Martín Nieto committed
  2. 27 Aug, 2012 11 commits
  3. 25 Aug, 2012 5 commits
  4. 24 Aug, 2012 15 commits
  5. 23 Aug, 2012 2 commits
  6. 22 Aug, 2012 6 commits
    • Some cleanup suggested during review · 85bd1746
      This cleans up a number of items suggested during code review
      with @vmg, including:
      
      * renaming "outside repo" config API to `git_config_open_default`
      * killing the `git_config_open_global` API
      * removing the `git_` prefix from the static functions in fileops
      * removing some unnecessary functionality from the "cp" command
      Russell Belfer committed
    • Don't reference stack vars in cleanup callback · b769e936
      If you use the clar cleanup callback function, you can't pass a
      reference pointer to a stack allocated variable because when the
      cleanup function runs, the stack won't exist anymore.
      Russell Belfer committed
    • Add template dir and set gid to repo init · ca1b6e54
      This extends git_repository_init_ext further with support for
      initializing the repository from an external template directory
      and with support for the "create shared" type flags that make a
      set GID repository directory.
      
      This also adds tests for much of the new functionality to the
      existing `repo/init.c` test suite.
      
      Also, this adds a bunch of new utility functions including a
      very general purpose `git_futils_mkdir` (with the ability to
      make paths and to chmod the paths post-creation) and a file
      tree copying function `git_futils_cp_r`.  Also, this includes
      some new path functions that were useful to keep the code
      simple.
      Russell Belfer committed
    • Add git_repository_init_ext for power initters · 662880ca
      The extended version of repository init adds support for many
      of the things that you can do with `git init` and sets up
      structures that will make it easier to extend further in the
      future.
      Russell Belfer committed
    • Minor bug fixes in diff code · 5fdc41e7
      In looking at PR #878, I found a few small bugs in the diff code,
      mostly related to work that can be avoided when processing tree-
      to-tree diffs that was always being carried out.  This commit has
      some small fixes in it.
      Russell Belfer committed