Permalink
Switch branches/tags
Commits on Oct 27, 2014
  1. Merge pull request #2366 from kitbellew/fix-indexer-mmap-cast

    carlosmn committed Oct 27, 2014
    Fix compiler warning (git_off_t cast to size_t).
Commits on Aug 26, 2014
  1. Merge pull request #2422 from libgit2/cmn/ssh-retry

    vmg committed Aug 26, 2014
    Enable retries for SSH
Commits on Jun 26, 2014
  1. travis: enable password authentication on OSX

    carlosmn committed Jun 26, 2014
    Our ssh tests assume that the server supports password authentication
    in a few places. This is convenient as we're not testing authentication
    methods, but what happens around them.
    
    Tell sshd on OSX to accept this form of authentication.
  2. ssh: adjust clone and push test credentials to the split user+pass me…

    carlosmn committed Jun 25, 2014
    …thod
    
    For urls where we do not specify a username, we must handle the case
    where the ssh transport asks us for the username.
    
    Test also that switching username fails.
  3. ssh: make sure to ask for a username and use the same one

    carlosmn committed Jun 25, 2014
    In order to know which authentication methods are supported/allowed by
    the ssh server, we need to send a NONE auth request, which needs a
    username associated with it.
    
    Most ssh server implementations do not allow switching the username
    between authentication attempts, which means we cannot use a dummy
    username and then switch. There are two ways around this.
    
    The first is to use a different connection, which an earlier commit
    implements, but this increases how long it takes to get set up, and
    without knowing the right username, we cannot guarantee that the
    list we get in response is the right one.
    
    The second is what's implemented here: if there is no username specified
    in the url, ask for it first. We can then ask for the list of auth
    methods and use the user's credentials in the same connection.
  4. cred: add convenience function to get the username

    carlosmn committed Jun 25, 2014
    Since each cred defines the username on their own, introduce
    git_cred__username to retrieve the username pointer from them.
  5. cred: introduce username-only cred

    carlosmn committed Jun 25, 2014
    This exists as ssh needs to know about the username to use before it can
    query for the supported authentication methods.
  6. ssh: request credentials again on authentication failure

    carlosmn committed Jun 16, 2014
    Instead of completely giving up on the first failure, ask for
    credentials as long as we fail to authenticate.
  7. Introduce GIT_EAUTH

    carlosmn committed Jun 16, 2014
    Introduce this error code to signal an authentication failure.
Commits on Jun 17, 2014
  1. ssh: propagate the error code from the auth callback

    carlosmn committed Jun 12, 2014
    We need to be able to get a GIT_EUSER back through the outermost call.
  2. ssh: detect authentication methods

    carlosmn committed Jun 12, 2014
    Before calling the credentials callback, ask the sever which
    authentication methods it supports and report that to the user, instead
    of simply reporting everything that the transport supports.
    
    In case of an error, we do fall back to listing all of them.
Commits on Jun 16, 2014
  1. Merge pull request #2425 from libgit2/cmn/clone-auth-change

    vmg committed Jun 16, 2014
    Don't use read-write accounts for the tests
Commits on Jun 14, 2014
  1. Merge pull request #2421 from libgit2/cmn/init-ssl-once

    vmg committed Jun 14, 2014
    netops: init OpenSSL once under lock
Commits on Jun 13, 2014
  1. test: remove assembla clone test

    carlosmn committed Jun 13, 2014
    The assembla failure we were seeing referred to a private repository,
    which is not what is there at the moment.
    
    This reverts 1fd21b0
  2. test: use read-only account

    carlosmn committed Jun 13, 2014
    Don't write in plaintext the password of an account which has full
    control over the repository. Instead use an account with read-only
    access.
  3. http: fix typo in credentials logic

    carlosmn committed Jun 13, 2014
    We want to check whether the credentials callback is NULL, not whether
    the payload is.
Commits on Jun 12, 2014
  1. ssl: init everything all the time

    carlosmn committed Jun 12, 2014
    Bring together all of the OpenSSL initialization to
    git_threads_init() so it's together and doesn't need locks.
    
    Moving it here also gives us libssh2 thread safety (when built against
    openssl).
  2. ssl: cargo-cult thread safety

    carlosmn committed Jun 12, 2014
    OpenSSL's tests init everything in the main thread, so let's do that.
Commits on Jun 11, 2014
  1. ssl: use locking

    carlosmn committed Jun 11, 2014
    When using in a multithreaded context, OpenSSL needs to lock, and leaves
    it up to application to provide said locks.
    
    We were not doing this, and it's just luck that's kept us from crashing
    up to now.
  2. remote: update documentation

    carlosmn committed Jun 11, 2014
    Add docs for git_clone_local_t and move the docs for the
    git_clone_options to each field.
  3. netops: init OpenSSL once under lock

    carlosmn committed Jun 11, 2014
    The OpenSSL init functions are not reentrant, which means that running
    multiple fetches in parallel can cause us to crash.
    
    Use a mutex to init OpenSSL, and since we're adding this extra checks,
    init it only once.
  4. Merge pull request #2417 from libgit2/cmn/revwalk-array-fix

    vmg committed Jun 11, 2014
    revwalk: more sensible array handling
Commits on Jun 10, 2014
  1. revwalk: more sensible array handling

    carlosmn committed Jun 10, 2014
    Instead of using a sentinel empty value to detect the last commit, let's
    check for when we get a NULL from popping the stack, which lets us know
    when we're done.
    
    The current code causes us to read uninitialized data, although only on
    RHEL/CentOS 6 in release mode. This is a readability win overall.
  2. Merge pull request #2416 from libgit2/cmn/treebuilder-insert-sorted

    vmg committed Jun 10, 2014
    treebuilder: insert sorted
Commits on Jun 9, 2014
  1. treebuilder: insert sorted

    carlosmn committed Jun 9, 2014
    By inserting in the right position, we can keep the vector sorted,
    making entry insertion almost twice as fast.
  2. remote: fix rename docs

    carlosmn committed Jun 9, 2014
Commits on Jun 8, 2014
  1. Bump version to 0.21.0

    carlosmn committed Jun 8, 2014
    Bump library version to 0.21.0 and SONAME to 21
  2. Change SOVERSION at API breaks

    carlosmn committed Jun 8, 2014
    Since the SOVERSION doesn't need to follow the library's version and
    simply needs to be monotonically increasing whenever we release
    something that breaks the ABI, we can set some number and allow multiple
    versions of the library to be installed side-by-side.
    
    We start here with the minor version as that's what we release for now,
    and it allows to backport this change to earlier versions.
  3. Merge pull request #2407 from libgit2/cmn/remote-rename-more

    vmg committed Jun 8, 2014
    More remote rename fixes
  4. Merge pull request #2409 from phkelley/win32_thread_fixes

    vmg committed Jun 8, 2014
    Win32: Fix object::cache::threadmania test on x64
Commits on Jun 7, 2014
  1. React to review feedback

    Philip Kelley
    Philip Kelley committed Jun 7, 2014
  2. Win32: Fix object::cache::threadmania test on x64

    Philip Kelley
    Philip Kelley committed Jun 7, 2014