forum/Shared directory with non git-annex usersgit-annexhttp://git-annex.branchable.com/forum/Shared_directory_with_non_git-annex_users/git-annexikiwiki2017-09-24T04:21:11Zcomment 1http://git-annex.branchable.com/forum/Shared_directory_with_non_git-annex_users/comment_1_a56cb4993982e030eb9fd4cdb3b0c368/Florian2017-09-24T04:21:11Z2017-09-24T04:21:11Z
<p>Ok, I tried it using <code>GIT_DIR</code> and <code>GIT_WORK_TREE</code>:</p>
<pre><code>Current directory is ~/git-annex, ./work exists and is populated with some files.
% GIT_DIR=~/git-annex/git GIT_WORK_TREE=~/git-annex/work git init
% GIT_DIR=~/git-annex/git GIT_WORK_TREE=~/git-annex/work git annex init "server"
% GIT_DIR=~/git-annex/git GIT_WORK_TREE=~/git-annex/work git annex direct
% GIT_DIR=~/git-annex/git GIT_WORK_TREE=~/git-annex/work git annex add .
[... file are addded ...]
% GIT_DIR=~/git-annex/git GIT_WORK_TREE=~/git-annex/work git annex sync
[... file are synced ...]
% git clone git remote
% cd remote
% git annex init "remote"
% git annex sync
% git annex get a.out
get a.out
Unable to access these remotes: origin
Try making some of these repositories available:
ed208c9f-a963-4000-a505-c3fe9dab0042 -- server [origin]
failed
git-annex: get: 1 failed
% git annex whereis a.out
whereis a.out (1 copy)
ed208c9f-a963-4000-a505-c3fe9dab0042 -- server [origin]
ok
</code></pre>
<p>The remote is of course available, it's all local.</p>
<p>What is still wrong?</p>
<p>Thanks,
Florian</p>