]> git.feebdaed.xyz Git - 0xmirror/git.git/commit
Merge branch 'bc/submodule-force-same-hash'
authorJunio C Hamano <gitster@pobox.com>
Mon, 24 Nov 2025 23:46:39 +0000 (15:46 -0800)
committerJunio C Hamano <gitster@pobox.com>
Mon, 24 Nov 2025 23:46:40 +0000 (15:46 -0800)
commitd91d79f26d5f2fb0468f42bf5d44356dce15a414
treede53faa3734dbc893bceabc212dfdbd70ffa5acf
parent54f7817456940bb1f72cb747328e5fde75307dc3
parent6fe288bfbcbbabc3d399dd71f876dccf71affff0
Merge branch 'bc/submodule-force-same-hash'

Adding a repository that uses a different hash function is a no-no,
but "git submodule add" did nt prevent it, which has been corrected.

* bc/submodule-force-same-hash:
  read-cache: drop submodule check from add_to_cache()
  object-file: disallow adding submodules of different hash algo
object-file.c
read-cache.c