1. 09 Feb, 2023 7 commits
    • core: allow users to configure home directory · 89454382
      Some callers -- like our test suite and the test suites of our language
      bindings -- want to isolate the home directory to avoid accidentally
      including the executing user's actual home directory data.
      
      Previously, we combined the notion of a home directory and global
      configuration -- now that this is separated, we provide users the
      ability to configure both.
      Edward Thomson committed
    • config: use home directory for `~` includes · cdf5ae9f
      Users can specify a config file to be included in the home directory
      using `~/filename` syntax. Instead of looking in the global
      configuration location (which may be overridden), use the user's
      _actual_ home directory. This allows callers to change the global
      configuration location separately from the home directory.
      Edward Thomson committed
    • attr: use home directory for `~` includes · 2d08ead9
      Users can specify an attribute file to be included in the home
      directory using `~/filename` syntax. Instead of looking in the
      global configuration location (which may be overridden), use the
      user's _actual_ home directory. This allows callers to change the
      global configuration location separately from the home directory.
      Edward Thomson committed
    • ssh: give a realistic error message · 523d8b64
      I spent an hour banging my head against this, when it was because the
      remote didn't trust my key.
      Edward Thomson committed
    • ssh: support windows `known_hosts` files · 00893d2f
      Use `git_sysdir_find_homedir_file` to identify the path to the home
      directory's `.ssh/known_hosts`; this takes Windows paths into account by
      preferring `HOME`, then falling back to `HOMEPATH` and `USERPROFILE`
      directories.
      Edward Thomson committed
    • sysdir: provide actual home directory · bce17198
      Provide a mechanism to look up the user's home directory, using the same
      mechanism that we use for locating the global configuration path (a
      fancy name for saying "the home directory").
      
      SSH known hosts lookups now use this, instead of simply looking at the
      HOME environment variable, to support Windows-style home directory
      lookups in `HOME`, `HOMEPATH`, or `USERPROFILE`.
      Edward Thomson committed
    • sysdir: move windows sysdir functions out of shared util · 9a986364
      The windows sysdir functions are libgit2-specific and for git
      compatibility only; remove them from the shared util directory and bring
      them into the libgit2 source tree.
      Edward Thomson committed
  2. 03 Feb, 2023 1 commit
  3. 02 Feb, 2023 1 commit
  4. 26 Jan, 2023 1 commit
  5. 25 Jan, 2023 8 commits
  6. 24 Jan, 2023 3 commits
  7. 20 Jan, 2023 9 commits
  8. 05 Jan, 2023 1 commit
    • Use `git_clone__submodule` to avoid file checks in workdir · ae7a0a63
      `git_clone` checks for existence of (non-empty) directories that would clash with what is about to be cloned.
      
      This is problematic when cloning submodules since they make sense in the context of a parent module, so they should not use the current working dir.
      
      Since in `git_submodule_update` we clone the submodule only when it is not yet initialized we do not need to perform directory checks.
      Aleš Bizjak committed
  9. 28 Nov, 2022 1 commit
  10. 25 Nov, 2022 3 commits
  11. 23 Nov, 2022 5 commits