1. 06 Nov, 2017 2 commits
    • examples: network: fix Win32 linking errors due to getline · bf15dbf6
      The getline(3) function call is not part of ISO C and, most importantly,
      it is not implemented on Microsoft Windows platforms. As our networking
      example code makes use of getline, this breaks builds on MSVC and MinGW.
      As this code wasn't built prior to the previous commit, this was never
      noticed.
      
      Fix the error by instead implementing a `readline` function, which
      simply reads the password from stdin until it reads a newline
      character.
      Patrick Steinhardt committed
    • appveyor: build examples · 0b98a66b
      By default, CMake will not build our examples directory. As we do not
      instruct either the MinGW or MSVC builds on AppVeyor to enable building
      these examples, we cannot verify that those examples at least build on
      Windows systems.
      
      Fix that by passing `-DBUILD_EXAMPLES=ON` to AppVeyor's CMake
      invocation.
      Patrick Steinhardt committed
  2. 04 Nov, 2017 5 commits
  3. 31 Oct, 2017 1 commit
  4. 30 Oct, 2017 7 commits
  5. 29 Oct, 2017 4 commits
  6. 28 Oct, 2017 2 commits
  7. 20 Oct, 2017 4 commits
    • transports: ssh: ask for credentials again when passphrase is wrong · f2f14724
      When trying to decode the private key it looks like LibSSH2 returns a
      LIBSSH2_ERROR_PUBLICKEY_UNVERIFIED when the passphrase is incorrect.
      Curtis Vogt committed
    • examples: remove Makefile · 9b12eb6f
      Back in the days when libgit2 was still young, libgit2 was using plain
      Makefiles as build infrastructure. We later changed that to instead use
      the CMake build system to make cross-platform development easier. In the
      process, we forgot to remove the Makefile from our examples directory,
      which is fixed by this commit here. Furthermore, remove the accompanying
      .gitignore file, which ignores build outputs. As we do out-of-tree
      builds only nowadays, no output is generated in that directory anymore.
      Patrick Steinhardt committed
    • Merge pull request #4382 from pks-t/pks/cmake-source-dir · 8f05d2d8
      cmake: use project-relative binary and source directories
      Edward Thomson committed
    • cmake: use project-relative binary and source directories · 4da74c83
      Due to our split of CMake files into multiple modules, we had to replace
      some uses of the `${CMAKE_CURRENT_SOURCE_DIR}` and
      `${CMAKE_CURRENT_BINARY_DIR}` variables and replace them with
      `${CMAKE_SOURCE_DIR}` and `${CMAKE_BINARY_DIR}`. This enabled us to
      still be able to refer to top-level files when defining build
      instructions inside of a subdirectory.
      
      When replacing all variables, it was assumed that the absolute set of
      variables is always relative to the current project. But in fact, this
      is not the case, as these variables always point to the source and
      binary directory as given by the top-levl project. So the change
      actually broke the ability to include libgit2 directly as a subproject,
      as source files cannot be found anymore.
      
      Fix this by instead using project-specific source and binary directories
      with `${libgit2_SOURCE_DIR}` and `${libgit2_BINARY_DIR}`.
      Patrick Steinhardt committed
  8. 19 Oct, 2017 1 commit
  9. 14 Oct, 2017 2 commits
  10. 13 Oct, 2017 1 commit
  11. 12 Oct, 2017 2 commits
  12. 09 Oct, 2017 9 commits