Merge branch 'bc/clone-with-git-default-hash-fix'
authorJunio C Hamano <gitster@pobox.com>
Tue, 29 Sep 2020 21:01:20 +0000 (14:01 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 29 Sep 2020 21:01:20 +0000 (14:01 -0700)
commitb28919c7bcfabad81896070e6b7b66be8310e6a8
tree304d19a2c97a33b316271952c1429163ace95438
parent288ed98bf768f4df9b569d51a52c233a1402c0f5
parent47ac970309dc26c95c4de4991b2e6aa7c7b7f615
Merge branch 'bc/clone-with-git-default-hash-fix'

"git clone" that clones from SHA-1 repository, while
GIT_DEFAULT_HASH set to use SHA-256 already, resulted in an
unusable repository that half-claims to be SHA-256 repository
with SHA-1 objects and refs.  This has been corrected.

* bc/clone-with-git-default-hash-fix:
  builtin/clone: avoid failure with GIT_DEFAULT_HASH