prune: quiet ENOENT on missing directories
commit69747653523afa3322e0f8dd6a5a7d30184694c3
authorEric Wong <e@80x24.org>
Sat, 19 Nov 2022 20:12:13 +0000 (19 20:12 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 21 Nov 2022 06:58:54 +0000 (21 15:58 +0900)
treea3836ca846693306242a4153040180b84f3e806f
parent3dcec76d9df911ed8321007b1d197c1a206dc164
prune: quiet ENOENT on missing directories

$GIT_DIR/objects/pack may be removed to save inodes in shared
repositories.  Quiet down prune in cases where either
$GIT_DIR/objects or $GIT_DIR/objects/pack is non-existent,
but emit the system error in other cases to help users diagnose
permissions problems or resource constraints.

Signed-off-by: Eric Wong <e@80x24.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
builtin/prune.c
t/t5304-prune.sh