From 124161e22e200314d5bcdbba33aeb5f1766cd262 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Sat, 30 May 2015 12:01:25 -0400 Subject: [PATCH] response --- ..._22493ac2e1e74a6ef5223630747a029c._comment | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 doc/forum/how_to_disable_a_remote_temporarily/comment_1_22493ac2e1e74a6ef5223630747a029c._comment diff --git a/doc/forum/how_to_disable_a_remote_temporarily/comment_1_22493ac2e1e74a6ef5223630747a029c._comment b/doc/forum/how_to_disable_a_remote_temporarily/comment_1_22493ac2e1e74a6ef5223630747a029c._comment new file mode 100644 index 0000000000..ff2780a616 --- /dev/null +++ b/doc/forum/how_to_disable_a_remote_temporarily/comment_1_22493ac2e1e74a6ef5223630747a029c._comment @@ -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. +"""]]