core: diff: Correctly handle files changing type
This commit is contained in:
1 parent
e759c1cce5
commit
4a26be1bef
2 files changed
+14
-2
No files matched your search
+10
-1
@@ -19,7 +19,7 @@
|
||||
|
||||
set -e
|
||||
|
||||
echo "1..14"
|
||||
echo "1..15"
|
||||
|
||||
. libtest.sh
|
||||
|
||||
@@ -110,6 +110,15 @@ cd ${test_tmpdir}
|
||||
assert_file_has_content diff-test2-2 'A */oh-look-a-file$'
|
||||
echo "ok diff cwd"
|
||||
|
||||
cd ${test_tmpdir}/checkout-test2-4
|
||||
rm four
|
||||
mkdir four
|
||||
touch four/other
|
||||
$OSTREE diff test2 ./ > ${test_tmpdir}/diff-test2-2
|
||||
cd ${test_tmpdir}
|
||||
assert_file_has_content diff-test2-2 'M */four$'
|
||||
echo "ok diff file changing type"
|
||||
|
||||
cd ${test_tmpdir}/checkout-test2-4
|
||||
echo afile > oh-look-a-file
|
||||
cat > ${test_tmpdir}/ostree-commit-metadata <<EOF
|
||||
|
||||
Reference in new issue
Block a user