forum/how to force read-only in enableremote?git-annexhttp://git-annex.branchable.com/forum/how_to_force_read-only_in_enableremote__63__/git-annexikiwiki2016-11-10T18:23:47Zcomment 1http://git-annex.branchable.com/forum/how_to_force_read-only_in_enableremote__63__/comment_1_a1206c8517f467d9a584ba89ef0e101a/joey2016-11-10T18:23:47Z2016-11-10T18:13:28Z
<p>git-annex auto-init the local repository whenever it sees it's not
enabled and there is a git-annex branch (or origin/git-annex etc).
This is what adds the uuid of the local repository to remote.log.
So, it's not specific to <code>enableremote</code>; many git-annex commands
will do the same thing. And git-annex needs to allocate a uuid for the
local repo in order to work.</p>
<p>One way to deal with it is to use <code>git annex reinit</code> so it uses
some already existing uuid. Although then getting files etc will
update the records using that uuid. Might be ok if you have one
uuid, perhaps one you've marked dead, that you use for this purpose
and don't care what's recorded for that uuid.</p>
<p>Or, it might be better to let git-annex auto-init a new uuid,
and just configure this test repo to not push changes out to
elsewhere. For example, <code>git config remote.origin.annex-readonly true</code>
will make <code>git annex sync</code> avoid pushing back to the origin remote.</p>