forum/offsite repogit-annexhttp://git-annex.branchable.com/forum/offsite_repo/git-annexikiwiki2018-02-24T03:29:21Zcomment 1http://git-annex.branchable.com/forum/offsite_repo/comment_1_1f3ab9a39baa16e3e307b23fd1aabeb8/joey2018-02-08T18:09:19Z2018-02-08T17:32:00Z
<p>What you're looking for is probably the <a href="http://git-annex.branchable.com/required_content/">required content</a> settings.</p>
<p>However, <code>git annex fsck</code> did not perform any checks that required content
was present. Now it does. Enjoy!</p>
comment 2http://git-annex.branchable.com/forum/offsite_repo/comment_2_d4ecd0dc29597e3e0988e06ee9c4d245/ericm2018-02-11T08:59:07Z2018-02-11T08:59:07Z
Ok I think that will do. I'll give it a try when I get some time. Thanks!
comment 3http://git-annex.branchable.com/forum/offsite_repo/comment_3_4b233762116c52bd2a754f49152201b7/ericm2018-02-18T13:46:00Z2018-02-18T13:46:00Z
<p>Hi,</p>
<p>I first tried messing around with required content settings in a test repo in direct mode. This is what I did to initialize a test repo:</p>
<pre><code>git clone existing-repo
git annex init
git annex required . "include=*.jpg"
</code></pre>
<p>Then I run fsck:</p>
<pre><code>git annex fsck
</code></pre>
<p>And I get this output:</p>
<pre><code>fsck viber/0.02.01.0e411306e0b3fc90.jpg (fixing link) ok
fsck viber/0.02.01.20943bf9c18e42.jpg (fixing link) ok
fsck viber/0.02.01.5126da68987493.jpg (fixing link) ok
...
</code></pre>
<p>I expected the fsck command to complain that the required jpg files are not present in the current repo and fail. However, that is not what I'm getting.</p>
<p>Is this the expected behavior for a direct-mode repository? If not, is there something I missed?</p>
comment 4http://git-annex.branchable.com/forum/offsite_repo/comment_4_2e3dfd605df004330396040737a7c5ee/joey2018-02-22T16:52:41Z2018-02-22T16:51:34Z
<p>It seems likely that you have not upgraded git-annex to a version where
fsck checks the required content yet, especially since that change has not
yet made it into a release of git-annex. It will be in the next release, or
you can download a daily build to get it now.</p>
comment 5http://git-annex.branchable.com/forum/offsite_repo/comment_5_59a7718fde634c96dd781ed5fca1f61a/ericm2018-02-24T03:29:21Z2018-02-24T03:29:21Z
<p>Ok I'll just wait for the next version. Btw I'm using the latest version: 6.20180112.
Thanks!</p>