Sync with 2.42.2
commit8e97ec3662a54b07e4c19bb761e95cf87bd54364
authorJohannes Schindelin <johannes.schindelin@gmx.de>
Wed, 10 Apr 2024 20:04:48 +0000 (10 22:04 +0200)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Fri, 19 Apr 2024 10:38:50 +0000 (19 12:38 +0200)
treedf6bcdd503eb7093979e0c26581d0f3e3be379da
parent0d464a4e6a5a19bd8fbea1deae22d48d14dccb01
parentbabb4e5d7107ba730beff8d224e4bcf065533e0b
Sync with 2.42.2

* maint-2.42: (39 commits)
  Git 2.42.2
  Git 2.41.1
  Git 2.40.2
  Git 2.39.4
  fsck: warn about symlink pointing inside a gitdir
  core.hooksPath: add some protection while cloning
  init.templateDir: consider this config setting protected
  clone: prevent hooks from running during a clone
  Add a helper function to compare file contents
  init: refactor the template directory discovery into its own function
  find_hook(): refactor the `STRIP_EXTENSION` logic
  clone: when symbolic links collide with directories, keep the latter
  entry: report more colliding paths
  t5510: verify that D/F confusion cannot lead to an RCE
  submodule: require the submodule path to contain directories only
  clone_submodule: avoid using `access()` on directories
  submodules: submodule paths must not contain symlinks
  clone: prevent clashing git dirs when cloning submodule in parallel
  t7423: add tests for symlinked submodule directories
  has_dir_name(): do not get confused by characters < '/'
  ...
25 files changed:
Documentation/fsck-msgids.txt
Documentation/git-upload-pack.txt
Documentation/git.txt
INSTALL
builtin/clone.c
builtin/submodule--helper.c
config.c
dir.c
dir.h
entry.c
fsck.c
fsck.h
http.c
read-cache.c
remote-curl.c
setup.c
submodule.c
t/t0411-clone-from-partial.sh
t/t1450-fsck.sh
t/t1800-hook.sh
t/t5510-fetch.sh
t/t5601-clone.sh
t/t7400-submodule-basic.sh
t/t7406-submodule-update.sh
t/t7450-bad-git-dotfiles.sh