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:
Joey Hess 2022-09-30 14:02:31 -04:00
parent 8d8f7ee884
commit 49ee07f93d
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
3 changed files with 9 additions and 1 deletions

View file

@ -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

View file

@ -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

View file

@ -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]]