Skip to content

pr-1194/neerajsi-msft/ns/fsync-die-filename-v1

From: Neeraj Singh <neerajsi@microsoft.com>

If we die while trying to fsync a loose object file, pass the actual
filename we're trying to sync. This is likely to be more helpful for a
user trying to diagnose the cause of the failure than the former
'loose object file' string. It also sidesteps any concerns about
translating the die message differently for loose objects versus
something else that has a real path.

Reported-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Neeraj Singh <neerajsi@microsoft.com>

Submitted-As: https://lore.kernel.org/git/pull.1194.git.1648664055986.gitgitgadget@gmail.com
Assets 2