Merge branch 'jk/index-pack-wo-repo-from-stdin' into next
authorJunio C Hamano <gitster@pobox.com>
Mon, 19 Dec 2016 23:38:08 +0000 (15:38 -0800)
committerJunio C Hamano <gitster@pobox.com>
Mon, 19 Dec 2016 23:38:08 +0000 (15:38 -0800)
commit9a88221347ef1628a49978d92211d9a85d647124
tree0c1321ce1ed2436413a6502f48126f77176f2bca
parent166168205c7d178ec94e0b0b2f013fd25e0e9746
parent29401e15754518a0e63e00d6cabc5a5f2f9b0973
Merge branch 'jk/index-pack-wo-repo-from-stdin' into next

"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