• Show log

    Commit

  • Hash : c1aefb35
    Author : nulltoken
    Date : 2012-04-14T14:13:17

    Fix git_repository_set_index() refcount issue
    
    git_repository_free() calls git_index_free() if the owned index is not null.
    
    According to the doc, when setting a new index through git_repository_set_index() the caller has still to take care of releasing the index by itself.
    
    In order to cope with this, this fix makes sure the index refcount is incremented when a new repository is being plugged a new index.