fix flush of a closed file handle
Avoids displaying warning about git-annex restage needing to be run in situations where it does not. Closing a handle flushes it anyway, so no need for an explict flush. The handle does get closed twice, but that's fine, the second one does nothing. Sponsored-by: Dartmouth College's DANDI project
This commit is contained in:
parent
8d8f7ee884
commit
49ee07f93d
3 changed files with 9 additions and 1 deletions
|
@ -1,3 +1,10 @@
|
|||
git-annex (10.20220928) UNRELEASED; urgency=medium
|
||||
|
||||
* Avoid displaying warning about git-annex restage needing to be run
|
||||
in situations where it does not.
|
||||
|
||||
-- Joey Hess <id@joeyh.name> Fri, 30 Sep 2022 13:54:23 -0400
|
||||
|
||||
git-annex (10.20220927) upstream; urgency=medium
|
||||
|
||||
* Fix a bug in the last release that caused v8 repositories to upgrade
|
||||
|
|
|
@ -160,7 +160,6 @@ refreshIndex repo feeder = bracket
|
|||
|
||||
go (Just h, _, _, pid) = do
|
||||
let closer = do
|
||||
hFlush h
|
||||
hClose h
|
||||
forceSuccessProcess p pid
|
||||
feeder $ \case
|
||||
|
|
|
@ -178,3 +178,5 @@ Git Annex is great. I use it several times a week with my multigigabyte backups,
|
|||
Big thanks, Joey!
|
||||
|
||||
[[!meta author=jkniiv]]
|
||||
|
||||
> [[fixed|done]] --[[Joey]]
|
||||
|
|
Loading…
Reference in a new issue