git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* git fetch --prune fails with "fatal: bad object"
@ 2024-05-31 22:34 Curley Joe
  2024-05-31 23:27 ` Junio C Hamano
  0 siblings, 1 reply; 16+ messages in thread
From: Curley Joe @ 2024-05-31 22:34 UTC (permalink / raw)
  To: git

git fetch --prune fails with "fatal: bad object" for refs that have an invalid sha1 pointer. It would be nice if "git fetch --prune" could prune these refs, because it is a hassle to do it manually. ("git fetch --prune" only shows the first invalid ref, and you have to run "git fsck" and parse it to find the rest.) If it seems like adding this functionality to --prune is a bad idea, then how about adding an option like "--prune-invalid" ?

Thanks.

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

end of thread, other threads:[~2024-06-13  3:29 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-31 22:34 git fetch --prune fails with "fatal: bad object" Curley Joe
2024-05-31 23:27 ` Junio C Hamano
2024-05-31 23:36   ` rsbecker
2024-06-01 15:53     ` Junio C Hamano
2024-06-04 10:44       ` Jeff King
2024-06-04 17:50         ` Junio C Hamano
2024-06-05  8:45           ` Jeff King
2024-06-04 20:09         ` Fred Long
2024-06-05  8:47           ` Jeff King
2024-06-05 23:43             ` Fred Long
2024-06-06  1:14               ` Jeff King
2024-06-06 20:12                 ` Fred Long
2024-06-08 11:20                   ` Jeff King
2024-06-08 21:02                     ` Fred Long
2024-06-11  7:31                       ` Jeff King
2024-06-13  3:29                         ` Fred Long

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 NNTP newsgroup(s).