1. 28 Apr, 2021 2 commits
    • apply: ensure we validate paths · dbc03de4
      There was no test ensuring that we validate `.git` paths.  We do, but
      let's add a test to make sure that we never regress this.
      Edward Thomson committed
    • path: introduce ondisk and workdir path validation · dc1ba018
      Introduce `git_path_validate_filesystem` which validates (absolute) on-disk
      paths and `git_path_validate_workdir` to perform validations on (absolute)
      working directory paths.  These functions are useful as there may be system
      limitations on on-disk paths, particularly on Windows (for example,
      enforcing MAX_PATH).
      
      For working directory paths, these limitations may be per-repository, based
      on the `core.longpaths` configuration setting.
      Edward Thomson committed
  2. 14 Apr, 2021 4 commits
  3. 10 Mar, 2021 2 commits
  4. 04 Mar, 2021 7 commits
  5. 03 Mar, 2021 2 commits
  6. 02 Mar, 2021 1 commit
    • winhttp: skip certificate check if unable to send request · edffea15
      In some circumstances (e.g. when proxies are involved), winhttp will fail to reach the WINHTTP_CALLBACK_STATUS_SENDING_REQUEST phase. If this occurs, we'll error with ERROR_WINHTTP_INCORRECT_HANDLE_STATE when attempting to query the server certificate context (see https://docs.microsoft.com/en-us/windows/win32/api/winhttp/nf-winhttp-winhttpsendrequest#remarks).
      
      To avoid this, verify that WinHttpSendRequest has reached the WINHTTP_CALLBACK_STATUS_SENDING_REQUEST phase before checking the certificate. Since we're using WinHTTP in synchronous mode, we know for sure that once WinHttpSendRequest returns we've either sent it successfully or not.
      
      NOTE: WINHTTP_CALLBACK_STATUS_SENDING_REQUEST appears to be deprecated with no direct replacement. WINHTTP_CALLBACK_STATUS_SENDREQUEST_COMPLETE is only available in async mode, and there doesn't appear to be a method of querying this flag outside of the status callback.
      Ian Hattendorf committed
  7. 01 Mar, 2021 1 commit
  8. 28 Feb, 2021 3 commits
  9. 22 Feb, 2021 2 commits
  10. 21 Feb, 2021 1 commit
  11. 19 Feb, 2021 1 commit
  12. 18 Feb, 2021 1 commit
  13. 17 Feb, 2021 2 commits
  14. 15 Feb, 2021 2 commits
  15. 11 Feb, 2021 2 commits
  16. 01 Feb, 2021 5 commits
  17. 31 Jan, 2021 2 commits