This commit is contained in:
Joey Hess 2015-05-30 12:01:25 -04:00
parent 08ac70ae86
commit 124161e22e

View file

@ -0,0 +1,32 @@
[[!comment format=mdwn
username="joey"
subject="""comment 1"""
date="2015-05-30T15:56:09Z"
content="""
I think you should be able to use remote.name.annex-ignore for this.
Let's see:
joey@darkstar:~/tmp/a>git annex addurl --fast http://localhost
addurl localhost ok
(recording state in git...)
joey@darkstar:~/tmp/a>git config remote.web.annex-ignore true
joey@darkstar:~/tmp/a>git annex get localhost
get localhost (not available)
Try making some of these repositories available:
00000000-0000-0000-0000-000000000001 -- web
(Note that these git remotes have annex-ignore set: web)
failed
git-annex: get: 1 failed
joey@darkstar:~/tmp/a>git config remote.web.annex-ignore false
joey@darkstar:~/tmp/a>git annex get localhost
get localhost (from web...)
/home/joey/tmp/a/.g 100%[=====================>] 10 --.-KB/s in 0s
ok
Yay, it worked!
I think the assistant might need a restart to notice git config changes
like this.
"""]]