]> git.ipfire.org Git - thirdparty/git.git/commit
Merge branch 'ps/mv-contradiction-fix'
authorJunio C Hamano <gitster@pobox.com>
Thu, 8 May 2025 19:36:31 +0000 (12:36 -0700)
committerJunio C Hamano <gitster@pobox.com>
Thu, 8 May 2025 19:36:32 +0000 (12:36 -0700)
commit0730906043110523d844f7371770aee0bcacc1a9
tree6bdf0b37eb2d321f83317b1a9d38b0466cb95d84
parent4a4656d0832ba14b2a41e5feba70fb388216f4f8
parent974f0d46645604ac45b8a5ce0b90e2b2a56ca764
Merge branch 'ps/mv-contradiction-fix'

"git mv a a/b dst" would ask to move the directory 'a' itself, as
well as its contents, in a single destination directory, which is
a contradicting request that is impossible to satisfy. This case is
now detected and the command errors out.

* ps/mv-contradiction-fix:
  builtin/mv: convert assert(3p) into `BUG()`
  builtin/mv: bail out when trying to move child and its parent
builtin/mv.c