mv: prevent mismatched data when ignoring errors.
authorbrian m. carlson <sandals@crustytoothpaste.net>
Sat, 15 Mar 2014 18:56:52 +0000 (18:56 +0000)
committerJunio C Hamano <gitster@pobox.com>
Mon, 17 Mar 2014 18:38:41 +0000 (11:38 -0700)
We shrink the source and destination arrays, but not the modes or
submodule_gitfile arrays, resulting in potentially mismatched data. Shrink
all the arrays at the same time to prevent this. Add tests to ensure the
problem does not recur.

Signed-off-by: brian m. carlson <sandals@crustytoothpaste.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
No differences found