Fix several places where files in .git/annex/ were written with modes that did not take the core.sharedRepository config into account.
git grep writeFile finds some more that might also be problems, but for now I've concentrated on .git/annex/ log files. There are certianly cases where writeFile is not a problem too. This commit was sponsored by mo on Patreon.
This commit is contained in:
parent
a73f12389d
commit
24df95f0f6
12 changed files with 62 additions and 40 deletions
|
@ -30,10 +30,10 @@ import qualified Remote
|
|||
import qualified Types.Remote as Remote
|
||||
import Types.UrlContents
|
||||
import Logs.Web
|
||||
import Logs.File
|
||||
import qualified Utility.Format
|
||||
import Utility.Tmp
|
||||
import Command.AddUrl (addUrlFile, downloadRemoteFile, parseDownloadOptions, DownloadOptions(..))
|
||||
import Annex.Perms
|
||||
import Annex.UUID
|
||||
import Backend.URL (fromUrl)
|
||||
import Annex.Content
|
||||
|
@ -386,8 +386,7 @@ checkFeedBroken' url f = do
|
|||
now <- liftIO getCurrentTime
|
||||
case prev of
|
||||
Nothing -> do
|
||||
createAnnexDirectory (parentDir f)
|
||||
liftIO $ writeFile f $ show now
|
||||
writeLogFile f $ show now
|
||||
return False
|
||||
Just prevtime -> do
|
||||
let broken = diffUTCTime now prevtime > 60 * 60 * 23
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue