diff options
-rw-r--r-- | doc/bugs/git_annex_initremote_needs_some___34__error_checking__34__.mdwn | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/doc/bugs/git_annex_initremote_needs_some___34__error_checking__34__.mdwn b/doc/bugs/git_annex_initremote_needs_some___34__error_checking__34__.mdwn new file mode 100644 index 000000000..3521038d7 --- /dev/null +++ b/doc/bugs/git_annex_initremote_needs_some___34__error_checking__34__.mdwn @@ -0,0 +1,62 @@ +_git annex initremote_ without a complete command set still adds an entry to the uuid.log etc... and thus clutters up the state of the annex. I would not have expected this behaviour as a user. + +_initremote_ should fail and not do anything if the commands that it has been given are incomplete or incorrect. I was initialising a few rsync repos and noticed that i ended up having mutiple rsync remotes with the same name but different uuid's. I know its hard if not impossible to remove these uuid's so I have just marked them as "dead" in my live annexes. + +Here's a transcript of the problem + +<pre> +x00:sandbox jtang$ mkdir atest +x00:sandbox jtang$ cd atest/ +x00:atest jtang$ git init +Initialized empty Git repository in /Users/jtang/sandbox/atest/.git/ +x00:atest jtang$ git annex init +init ok +(Recording state in git...) +x00:atest jtang$ git annex status +supported backends: SHA256 SHA1 SHA512 SHA224 SHA384 SHA256E SHA1E SHA512E SHA224E SHA384E WORM URL +supported remote types: git S3 bup directory rsync web hook +trusted repositories: 0 +semitrusted repositories: 2 + 00000000-0000-0000-0000-000000000001 -- web + cbb58e1c-d737-11e1-b682-83239d5ff2e0 -- here +untrusted repositories: 0 +dead repositories: 0 +transfers in progress: none +available local disk space: 185 gigabytes (+1 megabyte reserved) +local annex keys: 0 +local annex size: 0 bytes +known annex keys: 0 +known annex size: 0 bytes +bloom filter size: 16 mebibytes (0% full) +backend usage: +x00:atest jtang$ git annex initremote foo +git-annex: Specify the type of remote with type= +x00:atest jtang$ git annex initremote foo type=rsync +(Recording state in git...) +initremote foo git-annex: Specify encryption=key or encryption=none or encryption=shared +x00:atest jtang$ git annex initremote foo type=rsync +(Recording state in git...) +initremote foo git-annex: Specify encryption=key or encryption=none or encryption=shared +x00:atest jtang$ git annex status +supported backends: SHA256 SHA1 SHA512 SHA224 SHA384 SHA256E SHA1E SHA512E SHA224E SHA384E WORM URL +supported remote types: git S3 bup directory rsync web hook +trusted repositories: (Recording state in git...) +0 +semitrusted repositories: 5 + 00000000-0000-0000-0000-000000000001 -- web + cbb58e1c-d737-11e1-b682-83239d5ff2e0 -- here + d3adfcd0-d737-11e1-b15b-b7032388f8aa -- foo + d6d8e1e0-d737-11e1-956a-0b3d3451226a -- foo + d78d795c-d737-11e1-ac98-4fe3d6fdfd54 -- foo +untrusted repositories: 0 +dead repositories: 0 +transfers in progress: none +available local disk space: 185 gigabytes (+1 megabyte reserved) +local annex keys: 0 +local annex size: 0 bytes +known annex keys: 0 +known annex size: 0 bytes +bloom filter size: 16 mebibytes (0% full) +backend usage: +x00:atest jtang$ +</pre> |