diff options
author | https://www.google.com/accounts/o8/id?id=AItOawkjvjLHW9Omza7x1VEzIFQ8Z5honhRB90I <Asheesh@web> | 2011-04-28 23:38:36 +0000 |
---|---|---|
committer | admin <admin@branchable.com> | 2011-04-28 23:38:36 +0000 |
commit | 8b950c5fe8a89bcdefe65ac709e2d3640eb03b1a (patch) | |
tree | 65591d3a9831dfbfa00f0bf0304c23e996e8a901 | |
parent | ee0238d2299d9c6953846cb7d344cd773377113f (diff) |
This demonstrates a git-annex failure when hard links are involved
-rw-r--r-- | doc/forum/Error_while_adding_a_file___34__createSymbolicLink:_already_exists__34__.mdwn | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/doc/forum/Error_while_adding_a_file___34__createSymbolicLink:_already_exists__34__.mdwn b/doc/forum/Error_while_adding_a_file___34__createSymbolicLink:_already_exists__34__.mdwn new file mode 100644 index 000000000..70881fcc8 --- /dev/null +++ b/doc/forum/Error_while_adding_a_file___34__createSymbolicLink:_already_exists__34__.mdwn @@ -0,0 +1,35 @@ +I'm importing a directory where some files are hard links of each other. + +This is confusing git-annex. Here's a small test of that: + +<pre> +paulproteus@pathi:/tmp$ mkdir annex-test +paulproteus@pathi:/tmp$ cd annex-test +paulproteus@pathi:/tmp/annex-test$ git init +Initialized empty Git repository in /tmp/annex-test/.git/ +paulproteus@pathi:/tmp/annex-test$ git annex init testing +init testing ok +paulproteus@pathi:/tmp/annex-test$ echo '* annex.backend=SHA1' >> .gitattributes +paulproteus@pathi:/tmp/annex-test$ git commit .gitattributes -m 'Default to sha1' +[master dd54b41] Default to sha1 + 1 files changed, 1 insertions(+), 0 deletions(-) +paulproteus@pathi:/tmp/annex-test$ echo "Look at me" > file1 +paulproteus@pathi:/tmp/annex-test$ cp -l file1 file2 +paulproteus@pathi:/tmp/annex-test$ git annex add file1 +add file1 (checksum...) ok +(Recording state in git...) +paulproteus@pathi:/tmp/annex-test$ git commit -m 'So far, so good' +[master eb43084] So far, so good + 2 files changed, 2 insertions(+), 0 deletions(-) + create mode 100644 .git-annex/9a3/f1f/SHA1-s11--b9c599d64212934582d676c722cf3ec61f60e09c.log + create mode 120000 file1 +paulproteus@pathi:/tmp/annex-test$ git annex add file2 +add file2 (checksum...) + git-annex: .git/annex/objects/PM/7p/SHA1-s11--b9c599d64212934582d676c722cf3ec61f60e09c/SHA1-s11--b9c599d64212934582d676c722cf3ec61f60e09c: createSymbolicLink: already exists (File exists) +git-annex: 1 failed +paulproteus@pathi:/tmp/annex-test$ +</pre> + +I think the right behavior here is to annex file2 just fine, as if they weren't hard links before. + +-- Asheesh. |