]> dgit.raspbian.org Git - git-annex.git/commit
moveFile on windows forgot to delete src file in fallback case
authorJoey Hess <joeyh@joeyh.name>
Fri, 30 May 2025 17:18:26 +0000 (13:18 -0400)
committerJoey Hess <joeyh@joeyh.name>
Fri, 30 May 2025 17:18:26 +0000 (13:18 -0400)
commitb111009868090d5546ab695e157d48dda4c6a2e1
treedf6dc6191210aaf15fb72c1f9b0e383e8c522a4c
parent622979432bce90b3f59fab6ae1468c5fa29cec9b
moveFile on windows forgot to delete src file in fallback case

This dates back to commit 625303226dc94c2f35a5a4835b7c53c582014643,
where a cross-device moveFile on Windows was made to fall back to copying
to the destination, but forgot to delete the source file.

Should fix the following test suite failure on Windows:

    import:                                FAIL (2.52s)
      .\Test\Framework.hs:383:
      C:\Users\RUNNER~1\AppData\Local\Temp\importtest.0\import1\f exists unexpectedly
      Use -p '/import/' to rerun this test only.

Which was seen here, running the test suite in the github action environment.
https://github.com/psychoinformatics-de/git-annex-wheel/issues/5
CHANGELOG
Utility/MoveFile.hs