• Show log

    Commit

  • Hash : 15c30b72
    Author : Carlos Martín Nieto
    Date : 2014-09-02T13:23:54

    clone: handle overly restrictive refspecs
    
    When the fetch refspec does not include the remote's default branch, it
    indicates an error in user expectations or programmer error. Error out
    in that case.
    
    This lets us get rid of the dummy refspec which can never work as its
    zeroed out. In the cases where we did not find a default branch, we set
    HEAD detached immediately, which lets us refactor the "normal" path,
    removing `found_branch`.
    

  • README.md

  • Writing Clar tests for libgit2

    For information on the Clar testing framework and a detailed introduction please visit:

    https://github.com/vmg/clar

    • Write your modules and tests. Use good, meaningful names.

    • Make sure you actually build the tests by setting:

        cmake -DBUILD_CLAR=ON build/
    • Test:

        ./build/libgit2_clar
    • Make sure everything is fine.

    • Send your pull request. That’s it.