git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* [PATCH 0/2] fix error handling in checkout-index
@ 2020-10-27  7:30 Jeff King
  2020-10-27  7:36 ` [PATCH 1/2] checkout-index: drop error message from empty --stage=all Jeff King
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Jeff King @ 2020-10-27  7:30 UTC (permalink / raw)
  To: git

While working on another topic, I noticed that "git checkout-index --
path" does not propagate errors through its exit code. It has been that
way for so long that I almost wondered if it is intentional, but I'm
pretty sure it's not. A bit scary, though. :)

  [1/2]: checkout-index: drop error message from empty --stage=all
  [2/2]: checkout-index: propagate errors to exit code

 builtin/checkout-index.c        | 16 ++++++++++++++--
 t/t2004-checkout-cache-temp.sh  | 10 +++++++++-
 t/t2006-checkout-index-basic.sh | 11 +++++++++++
 3 files changed, 34 insertions(+), 3 deletions(-)

-Peff

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2020-10-27 20:28 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-27  7:30 [PATCH 0/2] fix error handling in checkout-index Jeff King
2020-10-27  7:36 ` [PATCH 1/2] checkout-index: drop error message from empty --stage=all Jeff King
2020-10-27  7:37 ` [PATCH 2/2] checkout-index: propagate errors to exit code Jeff King
2020-10-27 19:13 ` [PATCH 0/2] fix error handling in checkout-index Junio C Hamano
2020-10-27 20:27   ` Jeff King

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).