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

This commit is contained in:
Joey Hess 2014-10-27 11:31:18 -04:00
commit 04e920d715
3 changed files with 42 additions and 0 deletions

View file

@ -0,0 +1,16 @@
I'm having trouble sharing an rsync remote between two users (as a "transfer" repository). `git-annex` thinks `rsync` fails because it can't set the permissions on the root directory on the destination. I've added `--perms --chmod=Dug+rwxs,Fug+rw,o-rwx` to `annex-rsync-options` so all users in the specified group on the destination can create and delete files. However, I see in the logs errors like:
sending incremental file list
./
rsync: failed to set permissions on "/home/shared-xfer/.": Operation not permitted (1)
2fe/985/GPGHMACSHA1--b36ce0a18718e7ea7cf9827c2748608df7152dfc/GPGHMACSHA1--b36ce0a18718e7ea7cf9827c2748608df7152dfc
32,768 0% 0.00kB/s 0:00:00
3,359,405 100% 4.78MB/s 0:00:00 (xfr#1, to-chk=0/5)
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1165) [sender=3.1.1]
[2014-10-18 15:16:24 EDT] chat: gpg ["--batch","--no-tty","--use-agent","--quiet","--trust-model","always","--batch","--passphrase-fd","22","--symmetric","--force-mdc","--no-textmode"]
[2014-10-18 15:16:24 EDT] read: rsync ["-e","'ssh' '-S' '.git/annex/ssh/blah@blah' '-o' 'ControlMaster=auto' '-o' 'ControlPersist=yes' '-l' 'blah' '-T'","--perms","--chmod=Dug+rwxs,Fug+rw,o-rwx","--progress","--recursive","--partial","--partial-dir=.rsync-partial","/blah/.git/annex/tmp/rsynctmp/24863/","blah@blah:/home/shared-xfer/"]
rsync failed -- run git annex again to resume file transfer
The transfer actually completes fine, except for setting permissions of the root directory on the destination (which I don't really care about, because I have manually set them to be correct). Is it possible for `git-annex` to copy the contents of the directory to rsync remotes? For the example above, instead of `/blah/.git/annex/tmp/rsynctmp/24863/`, `/blah/.git/annex/tmp/rsynctmp/24863/2fe` would work. I can't come up with an alternate solution for this server, except using the same remote user (which I'd prefer not to do).

View file

@ -0,0 +1,13 @@
I accidentally deleted a file from a git-annex repository with a plain "rm". How can I restore it from other repositories that have it?
I tried using
git annex copy --from $REMOTE $REMOVED_FILE
but git-annex complaints about
$REMOVED_FILE not found
I suppose that I could switch to indirect mode and do checkout and older version, but I'd prefer not to. My repository contains thousands of quite big files; it would take a lot of time and the probability of something going wrong during the conversion is quite high (see other bugs reported during import).
I'm using git-annex 5.20141024-g613f396.

View file

@ -0,0 +1,13 @@
[[!comment format=mdwn
username="https://www.google.com/accounts/o8/id?id=AItOawn3p4i4lk_zMilvjnJ9sS6g2nerpgz0Fjc"
nickname="Matthias"
subject="Keep historical data, but delete data never referenced"
date="2014-10-26T12:06:25Z"
content="""
Is there an easy solution for the following? There are two kinds of \"unused\" I would like to treat differently:
1. Kind \"really unused\": Was added once to the annex, but symlink was never committed
2. Kind \"only history\": A commit contains a symlink to the data, but no active branch
I want to preserve \"only history\", and only drop \"really unused\". What is an elegant way to do this? Thanks for your suggestions.
"""]]