From e9794fb6cae8b77007741299033ba37f84173665 Mon Sep 17 00:00:00 2001 From: "http://joeyh.name/" Date: Mon, 20 May 2013 16:22:18 +0000 Subject: [PATCH] Added a comment --- ..._ced397b9e6119a0798a282ee07e885df._comment | 61 +++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 doc/bugs/Assistant_doesn__39__t_actually_sync_file_contents_by_default/comment_6_ced397b9e6119a0798a282ee07e885df._comment diff --git a/doc/bugs/Assistant_doesn__39__t_actually_sync_file_contents_by_default/comment_6_ced397b9e6119a0798a282ee07e885df._comment b/doc/bugs/Assistant_doesn__39__t_actually_sync_file_contents_by_default/comment_6_ced397b9e6119a0798a282ee07e885df._comment new file mode 100644 index 0000000000..61d5f9bd25 --- /dev/null +++ b/doc/bugs/Assistant_doesn__39__t_actually_sync_file_contents_by_default/comment_6_ced397b9e6119a0798a282ee07e885df._comment @@ -0,0 +1,61 @@ +[[!comment format=mdwn + username="http://joeyh.name/" + nickname="joey" + subject="comment 6" + date="2013-05-20T16:22:18Z" + content=""" +Here is a simple example of setting up 2 repositories in the way the bug reporter describes here and on IRC. As you can see, the assistant syncs file content without any configuration: + +[[!format sh \"\"\" +joey@gnu:~/tmp/test>mkdir 1 2 +joey@gnu:~/tmp/test>cd 1; git init; git-annex init; git annex direct; echo \"file added to 1\" > file_from_1; cd .. +Initialized empty Git repository in /home/joey/tmp/test/1/.git/ +init ok +(Recording state in git...) +commit +# On branch master +# +# Initial commit +# +nothing to commit (create/copy files and use \"git add\" to track) +ok +direct ok +joey@gnu:~/tmp/test>cd 2; git init; git-annex init; git annex direct; echo \"file added to 2\" > file_from_2; cd .. +Initialized empty Git repository in /home/joey/tmp/test/2/.git/ +init ok +(Recording state in git...) +commit +# On branch master +# +# Initial commit +# +nothing to commit (create/copy files and use \"git add\" to track) +ok +direct ok +joey@gnu:~/tmp/test>cd 1; git remote add 2 ssh://localhost/~joey/tmp/test/2; git annex assistant; cd .. +joey@gnu:~/tmp/test>cd 2; git remote add 1 ssh://localhost/~joey/tmp/test/1; git annex assistant; cd .. +(merging synced/git-annex into git-annex...) +(Recording state in git...) +joey@gnu:~/tmp/test>cd 1 +joey@gnu:~/tmp/test/1>ls +file_from_1 +joey@gnu:~/tmp/test/1>ls +file_from_1 file_from_2 +joey@gnu:~/tmp/test/1>cat file_from_2 +file added to 2 +joey@gnu:~/tmp/test/1>cd .. +joey@gnu:~/tmp/test>cd 2 +joey@gnu:~/tmp/test/2>cat file_from_1 +file added to 1 +joey@gnu:~/tmp/test/2>rm file_from_2 +joey@gnu:~/tmp/test/2>cd .. +joey@gnu:~/tmp/test>cd 1 +joey@gnu:~/tmp/test/1>ls +file_from_1 +joey@gnu:~/tmp/test/1>date > newfile +joey@gnu:~/tmp/test/1>cd .. +joey@gnu:~/tmp/test>cd 2 +joey@gnu:~/tmp/test/2>cat newfile +Mon May 20 12:20:24 JEST 2013 +\"\"\"]] +"""]]