diff options
author | Joey Hess <joeyh@joeyh.name> | 2018-01-04 14:46:58 -0400 |
---|---|---|
committer | Joey Hess <joeyh@joeyh.name> | 2018-01-04 14:46:58 -0400 |
commit | aff4d31f8f8132d06a76bb311093efed3af7bedb (patch) | |
tree | f587c2b0191f41b2f680333743cd51481630b8f9 /Logs | |
parent | abbefad307ed40e9ed01e2991fe89fb2f9eb8bb0 (diff) |
more core.sharedRepository perm fixes
Fix more places where files in .git/annex/ were written with modes that
did not take the core.sharedRepository config into account.
This commit was sponsored by Jeff Goeke-Smith on Patreon.
Diffstat (limited to 'Logs')
-rw-r--r-- | Logs/File.hs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Logs/File.hs b/Logs/File.hs index c93b21e4d..6676dbb7e 100644 --- a/Logs/File.hs +++ b/Logs/File.hs @@ -11,6 +11,9 @@ import Annex.Common import Annex.Perms import Utility.Tmp +-- | Writes content to a file, replacing the file atomically, and +-- making the new file have whatever permissions the git repository is +-- configured to use. Creates the parent directory when necessary. writeLogFile :: FilePath -> String -> Annex () writeLogFile f c = go `catchNonAsync` \_e -> do -- Most of the time, the directory will exist, so this is only |