]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Merge branch 'ty/setup-error-tightening' into next
authorJunio C Hamano <gitster@pobox.com>
Tue, 10 Mar 2026 21:24:38 +0000 (14:24 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 10 Mar 2026 21:24:38 +0000 (14:24 -0700)
While discovering a ".git" directory, the code treats any stat()
failure as a sign that a filesystem entity .git does not exist
there, and ignores ".git" that is not a "gitdir" file or a
directory.  The code has been tightened to notice and report
filesystem corruption better.

* ty/setup-error-tightening:
  setup: improve error diagnosis for invalid .git files

1  2 
setup.c
setup.h
submodule.c
t/meson.build
worktree.c

diff --cc setup.c
Simple merge
diff --cc setup.h
Simple merge
diff --cc submodule.c
Simple merge
diff --cc t/meson.build
Simple merge
diff --cc worktree.c
Simple merge