diff options
Diffstat (limited to 'Annex')
-rw-r--r-- | Annex/Content.hs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Annex/Content.hs b/Annex/Content.hs index 397eb4061..1a2ed06c1 100644 --- a/Annex/Content.hs +++ b/Annex/Content.hs @@ -611,7 +611,10 @@ preseedTmp key file = go =<< inAnnex key ( return True , do s <- calcRepo $ gitAnnexLocation key - liftIO $ copyFileExternal CopyTimeStamps s file + liftIO $ ifM (doesFileExist s) + ( copyFileExternal CopyTimeStamps s file + , return False + ) ) {- Blocks writing to an annexed file, and modifies file permissions to |