Merge branch 'jk/no-looking-at-dotgit-outside-repo' into next
authorJunio C Hamano <gitster@pobox.com>
Wed, 19 Apr 2017 05:36:37 +0000 (22:36 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 19 Apr 2017 05:36:37 +0000 (22:36 -0700)
commit68260787ad55ed305f97068f3d52f3a1c24dafe6
treefdf2c11cf3338fbf6e8662c387cb3eae0aba00bf
parent9fbe55bfefde2a3d9b9885f208721e3288fa1bcc
parentbccb22cbb15d45c940da4c54231949c722d4fe30
Merge branch 'jk/no-looking-at-dotgit-outside-repo' into next

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