]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Merge branch 'ty/setup-error-tightening'
authorJunio C Hamano <gitster@pobox.com>
Mon, 16 Mar 2026 17:48:14 +0000 (10:48 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 16 Mar 2026 17:48:14 +0000 (10:48 -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