git-annex/Assistant
Joey Hess 217a6abb19
assistant: Fix a crash when a small file is deleted immediately after being created
git add will fail if the file got deleted in the meantime. And since it was
queued, there was a window until the queue flushed where a deletion of the
file would cause a crash.

Instead, reuse Command.Add.addFile, which sha1 hashes the file itself
immediately, and then queues the index update. Ignore exceptions that will
happen if the file got deleted already.

Sponsored-by: k0ld on Patreon
2023-06-19 12:44:56 -04:00
..
Alert Apply codespell -w throughout 2023-03-17 15:14:58 -04:00
Install fix build on OSX 2023-03-03 13:20:49 -04:00
Pairing filter out control characters in error messages 2023-04-10 13:50:51 -04:00
Threads assistant: Fix a crash when a small file is deleted immediately after being created 2023-06-19 12:44:56 -04:00
Types Apply codespell -w throughout 2023-03-17 15:14:58 -04:00
WebApp filter out control characters in error messages 2023-04-10 13:50:51 -04:00
Alert.hs
BranchChange.hs
Changes.hs
Commits.hs
Common.hs use fastDebug everywhere it can be used 2021-04-06 15:41:24 -04:00
CredPairCache.hs
DaemonStatus.hs switch from hslogger to purpose-built Utility.Debug 2021-04-05 13:40:31 -04:00
DeleteRemote.hs filter out control characters in error messages 2023-04-10 13:50:51 -04:00
Drop.hs add SeekInput (not yet used) 2020-09-15 15:41:13 -04:00
Fsck.hs
Gpg.hs
Install.hs Windows: Support long filenames in more (possibly all) of the code 2023-03-01 15:55:58 -04:00
MakeRemote.hs filter out control characters in error messages 2023-04-10 13:50:51 -04:00
MakeRepo.hs filter out control characters in error messages 2023-04-10 13:50:51 -04:00
Monad.hs turn of PackageImports in cabal file 2022-02-25 13:16:36 -04:00
NamedThread.hs
Pairing.hs
Pushes.hs
RemoteControl.hs
Repair.hs switch from hslogger to purpose-built Utility.Debug 2021-04-05 13:40:31 -04:00
RepoProblem.hs
Restart.hs Windows: Support urls like "file:///c:/path" 2023-03-27 13:38:02 -04:00
ScanRemotes.hs
Ssh.hs filter out control characters in error messages 2023-04-10 13:50:51 -04:00
Sync.hs Apply codespell -w throughout 2023-03-17 15:14:58 -04:00
TransferQueue.hs git style filename quoting controlled by core.quotePath 2023-04-08 14:52:26 -04:00
TransferSlots.hs git style filename quoting controlled by core.quotePath 2023-04-08 14:52:26 -04:00
Unused.hs Apply codespell -w throughout 2023-03-17 15:14:58 -04:00
Upgrade.hs filter out control characters in error messages 2023-04-10 13:50:51 -04:00
WebApp.hs