1. 20 Mar, 2018 1 commit
  2. 19 Mar, 2018 1 commit
    • online::clone: skip creds fallback test · 03c58778
      At present, we have three online tests against bitbucket: one which
      specifies the credentials in the payload, one which specifies the
      correct credentials in the URL and a final one that specifies the
      incorrect credentials in the URL.  Bitbucket has begun responding to the
      latter test with a 403, which causes us to fail.
      
      Break these three tests into separate tests so that we can skip the
      latter until this is resolved on Bitbucket's end or until we can change
      the test to a different provider.
      Edward Thomson committed
  3. 28 Feb, 2018 1 commit
  4. 18 Jan, 2018 1 commit
  5. 03 Jan, 2018 2 commits
    • tests: online::clone: inline creds-test with nonexistent URL · 54a1bf05
      Right now, we test our credential callback code twice, once via SSH on
      localhost and once via a non-existent GitHub repository. While the first
      URL makes sense to be configurable, it does not make sense to hard-code
      the non-existing repository, which requires us to call tests multiple
      times. Instead, we can just inline the URL into another set of tests.
      Patrick Steinhardt committed
    • tests: online::clone: construct credential-URL from environment · fea60920
      We support two types of passing credentials to the proxy, either via the
      URL or explicitly by specifying user and password. We test these types
      by modifying the proxy URL and executing the tests twice, which is
      in fact unnecessary and requires us to maintain the list of environment
      variables and test executions across multiple CI infrastructures.
      
      To fix the situation, we can just always pass the host, port, user and
      password to the tests. The tests can then assemble the complete URL
      either with or without included credentials, allowing us to test both
      cases in-process.
      Patrick Steinhardt committed
  6. 21 Jun, 2017 1 commit
  7. 05 May, 2017 3 commits
  8. 25 Apr, 2017 1 commit
  9. 09 Jan, 2017 2 commits
  10. 06 Jan, 2017 1 commit
  11. 27 Oct, 2016 1 commit
  12. 04 Aug, 2016 1 commit
    • refspec: do not set empty rhs for fetch refspecs · 1eee631d
      According to git-fetch(1), "[t]he colon can be omitted when <dst>
      is empty." So according to git, the refspec "refs/heads/master"
      is the same as the refspec "refs/heads/master:" when fetching
      changes. When trying to fetch from a remote with a trailing
      colon with libgit2, though, the fetch actually fails while it
      works when the trailing colon is left out. So obviously, libgit2
      does _not_ treat these two refspec formats the same for fetches.
      
      The problem results from parsing refspecs, where the resulting
      refspec has its destination set to an empty string in the case of
      a trailing colon and to a `NULL` pointer in the case of no
      trailing colon. When passing this to our DWIM machinery, the
      empty string gets translated to "refs/heads/", which is simply
      wrong.
      
      Fix the problem by having the parsing machinery treat both cases
      the same for fetch refspecs.
      Patrick Steinhardt committed
  13. 21 Apr, 2016 1 commit
  14. 19 Apr, 2016 3 commits
  15. 14 Mar, 2016 2 commits
  16. 02 Nov, 2015 1 commit
  17. 27 Sep, 2015 1 commit
  18. 18 Sep, 2015 1 commit
  19. 13 Sep, 2015 1 commit
  20. 10 Sep, 2015 1 commit
  21. 08 Sep, 2015 1 commit
  22. 02 Jul, 2015 1 commit
  23. 12 Jun, 2015 2 commits
  24. 27 May, 2015 1 commit
  25. 17 May, 2015 1 commit
    • clone: don't rely on auto-saving for single-branch · 7b5ce2e5
      The code used to rely on the clone code calling the remote's save, which
      does not happen anymore, meaning that the configuration settings the
      remote expected were not being written to disk.
      
      The run-time configuration was still being affected, so the right branch
      was being cloned. The tests continued to pass as we did not check for
      the configuration entires. Fix this by creating the remote with the
      single-branch refspec we want and checking for its existence in the
      configuration.
      Carlos Martín Nieto committed
  26. 13 May, 2015 5 commits
  27. 22 Apr, 2015 1 commit
  28. 18 Apr, 2015 1 commit