Merge branch 'jk/index-pack-wo-repo-from-stdin'
commit49d45de1e717df76481feedcdd189b64cea1fabb
authorJunio C Hamano <gitster@pobox.com>
Wed, 21 Dec 2016 22:55:03 +0000 (21 14:55 -0800)
committerJunio C Hamano <gitster@pobox.com>
Wed, 21 Dec 2016 22:55:03 +0000 (21 14:55 -0800)
treee9b6c15c6744a9240ced758bfd1ccc083ef117b6
parent47021efd6feb5939b89e54c8352204d3ace5f673
parent29401e15754518a0e63e00d6cabc5a5f2f9b0973
Merge branch 'jk/index-pack-wo-repo-from-stdin'

"git index-pack --stdin" needs an access to an existing repository,
but "git index-pack file.pack" to generate an .idx file that
corresponds to a packfile does not.

* jk/index-pack-wo-repo-from-stdin:
  index-pack: skip collision check when not in repository
  t: use nongit() function where applicable
  index-pack: complain when --stdin is used outside of a repo
  t5000: extract nongit function to test-lib-functions.sh