1. 05 Apr, 2017 1 commit
    • pkgconfig: fix handling of prefixes containing whitespaces · 22436f29
      Our libgit2.pc.in file is quoting the `libdir` variable in our declared
      "Libs:" line. The intention is to handle whitespaces here, but pkgconfig
      already does so by automatically escaping whitespace with backslashes.
      The correct thing to do is to instead quote the prefix, as this is the
      one which is being substituted by CMake upon installation. As both
      libdir and includedir will be expanded to "${prefix}/lib" and
      "${prefix}/include", respectively, pkgconfig will also correctly escape
      whitespaces.
      
      Note that this will actually break when a user manually wants to
      override libdir and includedir with a path containing whitespace. But
      actually, this cannot be helped, as always quoting these variables will
      actuall break the common case of being prefixed with "${prefix}". So we
      just bail out here and declare this as unsupported out of the box.
      Patrick Steinhardt committed
  2. 28 Mar, 2017 5 commits
  3. 24 Mar, 2017 3 commits
  4. 23 Mar, 2017 6 commits
  5. 22 Mar, 2017 6 commits
  6. 21 Mar, 2017 7 commits
  7. 20 Mar, 2017 11 commits
  8. 17 Mar, 2017 1 commit
    • submodule: resolve URLs relative to main worktree · b0c9bc92
      It is possible to specify submodule URLs relative to the repository
      location. E.g. having a submodule with URL "../submodule" will look for
      the submodule at "repo/../submodule".
      
      With the introduction of worktrees, though, we cannot simply resolve the
      URL relative to the repository location itself. If the repository for
      which a URL is to be resolved is a working tree, we have to resolve the
      URL relative to the parent's repository path. Otherwise, the URL would
      change depending on where the working tree is located.
      
      Fix this by special-casing when we have a working tree while getting the
      URL base.
      Patrick Steinhardt committed