git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] index-pack out-of-repo fixups
@ 2018-05-31 22:39 Jeff King
  2018-05-31 22:42 ` [PATCH 1/2] prepare_commit_graft: treat non-repository as a noop Jeff King
  2018-05-31 22:45 ` [PATCH 2/2] index-pack: handle --strict checks of non-repo packs Jeff King
  0 siblings, 2 replies; 3+ messages in thread
From: Jeff King @ 2018-05-31 22:39 UTC (permalink / raw)
  To: git

Coverity reported that the recently-added call to add_packed_git() in
index-pack.c actually does nothing. It's right, and it turns out this is
a minor bug in the .gitmodules fsck patches in v2.17.1. I say minor
because it errs on the side of complaining too much (so it's not a
security problem) and it comes up only in what I can imagine is a pretty
obscure case.

The second patch here fixes that. But while looking into it, I notice a
much older breakage in running "index-pack --strict" outside of a
repository entirely. That's fixed by the first patch.

  [1/2]: prepare_commit_graft: treat non-repository as a noop
  [2/2]: index-pack: handle --strict checks of non-repo packs

 builtin/index-pack.c       |  8 ++++++--
 commit.c                   |  3 +++
 t/t5300-pack-object.sh     |  6 ++++++
 t/t7415-submodule-names.sh | 10 ++++++++++
 4 files changed, 25 insertions(+), 2 deletions(-)

-Peff

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

end of thread, other threads:[~2018-05-31 22:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-05-31 22:39 [PATCH 0/2] index-pack out-of-repo fixups Jeff King
2018-05-31 22:42 ` [PATCH 1/2] prepare_commit_graft: treat non-repository as a noop Jeff King
2018-05-31 22:45 ` [PATCH 2/2] index-pack: handle --strict checks of non-repo packs Jeff King

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).