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

This commit is contained in:
Joey Hess 2015-04-05 12:58:57 -04:00
commit 7fcfb1ae77
3 changed files with 86 additions and 0 deletions

View file

@ -0,0 +1,24 @@
[[!comment format=mdwn
username="https://www.google.com/accounts/o8/id?id=AItOawl6rte43qSRK1o2zn7Ww4Z8pgBmJm8gDrc"
nickname="Rickard"
subject="comment 2"
date="2015-04-04T07:34:58Z"
content="""
> The contents of files are also encrypted using your gpg private key
I assume you meant to say gpg *public* key here?
You're correct in that I can publish the symmetric HMAC key unencrypted with no bad effects for me. I've searched the documents but haven't found a way to tell git-annex to use a specific, unencrypted, symmetric key for HMAC, though. Is there a way?
> So, I see no benefit to the suggested mode.
I don't understand the reasoning that made you come to this conclusion.
Let me restate my use case:
With only the public part of a gpg key id available to a user, I would like that user to be able to add files to a git-annex repository. The user should then be able to copy the files encrypted to remotes that support encryption (S3 etc). The user should not be able to fetch or verify files from the encrypted remotes (since she lacks the private gpg key). The remote would be write-only for the user, basically. However, a friend of the user, posessing the private key (and having access to the remote), should be able to use the remote just like a normal git-annex remote.
This is the normal way of using gpg for asymmetric encryption of files. I would find it useful to be able to use git-annex in a similar way. As far as I can understand, only the encrypted HMAC key is stopping me from using git-annex in this way.
However, there might be other things in git-annex' design that would make it difficult or even impossible to implement this functionality. It could also be the case that there's no benefit to adding this functionality to git-annex because there is some other (simpler) way to achieve the same thing. Both these cases are perfectly acceptable, but I would then be interested in knowing a bit more details.
"""]]

View file

@ -0,0 +1,27 @@
[[!comment format=mdwn
username="https://openid.stackexchange.com/user/e65e6d0e-58ba-41de-84cc-1f2ba54cf574"
nickname="Mica"
subject="Yes and no..."
date="2015-04-04T04:13:48Z"
content="""
> I am interested in using git-annex to manage git repositories, and I am wondering if it is possible and if anyone has experience with it?
That is not what git-annex is for. git-annex adds large file support to git.
> I have done some searching, and I know that many people have asked for support for a Dropbox-like workflow, where Git repositories are mirrored everywhere.
The git-annex assistant will automatically sync your files for you. It is similar to dropbox but not entirely the same.
> I also know that no such support seems forthcoming, however this is not my goal.
I don't know what would give you that idea, the git-annex assistant has already been released.
> Rather, I would like to use git-annex to track the location of many repositories. I keep a lot of repositories and would like to offload them onto other storage devices and keep track of where each repository is stored.
git-annex is not the right tool for that. Maybe you want something like myrepos, which is always written by Joey.
> Perhaps entire Git repositories can be added as a single unit for tracking in git-annex?
Seems unlikely as it is out of scope for git-annex.
"""]]

View file

@ -0,0 +1,35 @@
[[!comment format=mdwn
username="mac"
subject="importfeeds with file based rss contents"
date="2015-04-04T20:42:27Z"
content="""
Hi,
I've a script which generates .rss files which reference local files with the file:// scheme. I can import the file:// urls with git annex addurl, but it fails with git annex importfeed:
`$ git annex importfeed --fast file:///path/to/local/rss/file.rss`
`(checking known urls...)`
`importfeed file:///path/to/local/rss/file.rss`
`git-annex: /tmp/feed6757: openFile: resource busy (file is locked)`
If I try to import it with `$ git annex importfeed --fast /path/to/local/rss/file.rss` I get
`importfeed /path/to/local/rss/file.rss`
` warning: bad feed content`
`ok`
But the directory stays empty.
Is it possible to use local files in rss format with items which reference local files using the file:// scheme as input for importfeed?
Cheers,
Marco
"""]]