• Show log

    Commit

  • Hash : 477b3e04
    Author : Patrick Steinhardt
    Date : 2017-07-10T12:25:43

    submodule: refuse lookup in bare repositories
    
    While it is technically possible to look up submodules inside of a
    bare repository by reading the submodule configuration of a specific
    commit, we do not offer this functionality right now. As such, calling
    both `git_submodule_lookup` and `git_submodule_foreach` should error out
    early when these functions encounter a bare repository. While
    `git_submodule_lookup` already does return an error due to not being
    able to parse the configuration, `git_submodule_foreach` simply returns
    success and never invokes the callback function.
    
    Fix the issue by having both functions check whether the repository is
    bare and returning an error in that case.
    

  • 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.