aboutsummaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2016-12-16 16:43:22 -0500
committerJunio C Hamano <gitster@pobox.com>2016-12-16 13:57:19 -0800
commit29401e15754518a0e63e00d6cabc5a5f2f9b0973 (patch)
tree495ad9972f0561094c10857d3678cd46a7c0b7d8 /t
parenta3c45d126012e01b23edc4923ffddffac61d703b (diff)
downloadgit-29401e15754518a0e63e00d6cabc5a5f2f9b0973.tar.gz
git-29401e15754518a0e63e00d6cabc5a5f2f9b0973.tar.xz
index-pack: skip collision check when not in repository
You can run "git index-pack path/to/foo.pack" outside of a repository to generate an index file, or just to verify the contents. There's no point in doing a collision check, since we obviously do not have any objects to collide with. The current code will blindly look in .git/objects based on the result of setup_git_env(). That effectively gives us the right answer (since we won't find any objects), but it's a waste of time, and it conflicts with our desire to eventually get rid of the "fallback to .git" behavior of setup_git_env(). Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't')
0 files changed, 0 insertions, 0 deletions