]> git.ipfire.org Git - thirdparty/git.git/commitdiff
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)
"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

1  2 
builtin/mv.c

diff --cc builtin/mv.c
Simple merge