Merge branch 'master' of ssh://git-annex.branchable.com

This commit is contained in:
Joey Hess 2016-02-14 15:12:53 -04:00
commit 5e7b53a815
Failed to extract signature
5 changed files with 43 additions and 0 deletions

View file

@ -0,0 +1,11 @@
I added new content to my git annex repo on my laptop, in the usual way: copying the new dir into the repo, then cd into the new directory, 'git annex add .' and then 'git commit -m <MSG>'. Everything went well, with no errors, which means that the files were correctly moved to .git/annex/objects/ and symbolic links were created in the new dir. But now, if I do 'git annex fsck .', I get an error for each file:
[[!format sh """
fsck <FILENAME> (fixing location log) (checksum...)
** No known copies exist of <FILENAME>
failed
"""]]
Unfortunately, I am not able to reproduce the problem on a toy-example repository. This means that my git annex repo may be broken. How do I fix it?
I use git v1.9.1 on Ubuntu 14.04 LTS, and git-annex version: 5.20150406-gb2814bc
OK, in all honesty, I did a 'git annex sync' between the 'add' and the 'commit' above. But I synced with a clone of the repository that I keep on an external drive, which is less updated than my laptop. It is less updated because I always add content on my laptop and then sync/get from the external disk. So the sync did no harm, apparently.

View file

@ -0,0 +1,18 @@
[[!comment format=mdwn
username="emanuele.olivetti@47d88ed185b03191e25329caa6fabc2efb3118b2"
nickname="emanuele.olivetti"
subject="comment 1"
date="2016-02-13T22:27:56Z"
content="""
Additional information: I have 62 files in the added directory. Git-annex info return this, with a suspicious \"numcopies -2: 62\":
> git-annex info .
directory: .
local annex keys: 62
local annex size: 377.19 megabytes
annexed files in working tree: 62
size of annexed files in working tree: 377.19 megabytes
numcopies stats:
numcopies -2: 62
"""]]

View file

@ -0,0 +1,6 @@
Hi,
Because git annex doesn't annex symlinks, it is not possible to copy files from the a repository with a simple cp/rsync dereferencing each files. If we do this as of today, we would lose the original symlink information.
Would it be possible to change this behavior in the future, at least with an option?
Thanks

View file

@ -0,0 +1,7 @@
[[!comment format=mdwn
username="Gus"
subject="Thanks"
date="2016-02-12T21:47:53Z"
content="""
Thank you for your help.
"""]]

View file

@ -0,0 +1 @@
[[!meta author=yoh]]