]> git.ipfire.org Git - thirdparty/git.git/commit
setup.c: introduce `die_upon_dubious_ownership()`
authorPatrick Steinhardt <ps@pks.im>
Mon, 15 Apr 2024 11:30:36 +0000 (13:30 +0200)
committerJohannes Schindelin <johannes.schindelin@gmx.de>
Tue, 16 Apr 2024 22:01:26 +0000 (00:01 +0200)
commit8c9c051bef3db0fe267f3fb6a1dab293c5f23b38
tree2de8610d3fa204f0aa0bcb62d5a9a356ffd94b7a
parentd1bb66a546b4bb46005d17ba711caaad26f26c1e
setup.c: introduce `die_upon_dubious_ownership()`

Introduce a new function `die_upon_dubious_ownership()` that uses
`ensure_valid_ownership()` to verify whether a repositroy is safe for
use, and causes Git to die in case it is not.

This function will be used in a subsequent commit.

Helped-by: Johannes Schindelin <Johannes.Schindelin@gmx.de>
Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
cache.h
setup.c