Merge branch 'jk/no-looking-at-dotgit-outside-repo'
commiteb3af74e93953df7917dca43d264ac8d1fb85671
authorJunio C Hamano <gitster@pobox.com>
Thu, 20 Apr 2017 04:37:20 +0000 (19 21:37 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 20 Apr 2017 04:37:20 +0000 (19 21:37 -0700)
tree11c6b0ae899ca4c5994e1b6d04f9bd9e4c01f251
parent5ab8f2261fa2b595abe433dd50be0f2aaec14aa0
parentbccb22cbb15d45c940da4c54231949c722d4fe30
Merge branch 'jk/no-looking-at-dotgit-outside-repo'

Clean up fallouts from recent tightening of the set-up sequence,
where Git barfs when repository information is accessed without
first ensuring that it was started in a repository.

* jk/no-looking-at-dotgit-outside-repo:
  test-read-cache: setup git dir
  has_sha1_file: don't bother if we are not in a repository
sha1_file.c