]> dgit.raspbian.org Git - git-annex.git/commitdiff
fix logic that was not inverted after all
authorJoey Hess <joeyh@joeyh.name>
Thu, 13 Jan 2022 18:11:36 +0000 (14:11 -0400)
committerJoey Hess <joeyh@joeyh.name>
Thu, 13 Jan 2022 18:11:36 +0000 (14:11 -0400)
oops

Annex/Content/Presence.hs

index 091da5398512310096e5f94aa616d47930d8c950..df57716220e63c30674a52f6a19b24d68d328633 100644 (file)
@@ -122,8 +122,8 @@ contentLockFile :: Key -> Annex (Maybe RawFilePath)
  - versions use a separate lock file, to better support repos shared
  - amoung users in eg a group. -}
 contentLockFile key = ifM (versionNeedsWritableContentFiles <$> getVersion)
-       ( Just <$> calcRepo (gitAnnexContentLock key)
-       , pure Nothing
+       ( pure Nothing
+       , Just <$> calcRepo (gitAnnexContentLock key)
        )
 #else
 {- Windows always has to use a separate lock file from the content, since