* [PATCH] builtin/rm.c: use die_errno() when system call fails
@ 2026-07-06 18:21 Gatla Vishweshwar Reddy
0 siblings, 0 replies; only message in thread
From: Gatla Vishweshwar Reddy @ 2026-07-06 18:21 UTC (permalink / raw)
To: git; +Cc: Gatla Vishweshwar Reddy
---
builtin/rm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/builtin/rm.c b/builtin/rm.c
index 081d0bc375..3f5e6e232d 100644
--- a/builtin/rm.c
+++ b/builtin/rm.c
@@ -396,7 +396,7 @@ int cmd_rm(int argc,
printf("rm '%s'\n", path);
if (remove_file_from_index(the_repository->index, path))
- die(_("git rm: unable to remove %s"), path);
+ die_errno(_("git rm: unable to remove %s"), path);
}
if (show_only)
--
2.54.0
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-07-06 18:22 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-06 18:21 [PATCH] builtin/rm.c: use die_errno() when system call fails Gatla Vishweshwar Reddy
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox