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
|
@ -26,7 +26,7 @@ import Types.ScheduledActivity
|
|||
import qualified Annex.Branch
|
||||
import Logs
|
||||
import Logs.UUIDBased
|
||||
import Utility.Tmp
|
||||
import Logs.File
|
||||
|
||||
scheduleSet :: UUID -> [ScheduledActivity] -> Annex ()
|
||||
scheduleSet uuid@(UUID _) activities = do
|
||||
|
@ -67,5 +67,5 @@ getLastRunTimes = do
|
|||
setLastRunTime :: ScheduledActivity -> LocalTime -> Annex ()
|
||||
setLastRunTime activity lastrun = do
|
||||
f <- fromRepo gitAnnexScheduleState
|
||||
liftIO . viaTmp writeFile f . show . M.insert activity lastrun
|
||||
writeLogFile f . show . M.insert activity lastrun
|
||||
=<< getLastRunTimes
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue