1. 20 Apr, 2021 1 commit
    • git_reference_create_matching: Treat all-zero OID as "must be absent" · 95b7a639
      This is pretty useful in avoiding races: I want to create a ref only if
      it doesn't already exist.  I can't check first because of TOCTOU -- by
      the time I finish the check, someone else might have already created
      the ref.  And I can't take a lock because then I can't do the create,
      since the create expects to take the lock.
      
      The semantics are inspired by git update-ref, which allows an all-zero old
      value to mean that the ref must not exist.
      David Turner committed
  2. 13 Apr, 2021 5 commits
  3. 11 Apr, 2021 3 commits
  4. 02 Apr, 2021 1 commit
  5. 01 Apr, 2021 1 commit
  6. 20 Mar, 2021 1 commit
  7. 17 Mar, 2021 1 commit
  8. 10 Mar, 2021 2 commits
  9. 04 Mar, 2021 7 commits
  10. 03 Mar, 2021 2 commits
  11. 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
  12. 01 Mar, 2021 1 commit
  13. 28 Feb, 2021 3 commits
  14. 22 Feb, 2021 2 commits
  15. 21 Feb, 2021 1 commit
  16. 19 Feb, 2021 1 commit
  17. 18 Feb, 2021 1 commit
  18. 17 Feb, 2021 2 commits
  19. 15 Feb, 2021 2 commits
  20. 11 Feb, 2021 2 commits