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

This commit is contained in:
Joey Hess 2012-10-16 00:13:53 -04:00
commit 2dfd7cccf3
4 changed files with 47 additions and 0 deletions

View file

@ -0,0 +1,15 @@
It seems I can't initialize git annex:
$ git annex init "files2"
init files2
pre-commit hook (/Volumes/project/annex/.git/hooks/pre-commit) already exists, not configuring
git-annex: waitToSetLock: failed (Operation not supported)
failed
git-annex: init: 1 failed
$
`project` is a remote file server connected via `smb://`.
Any ideas why and how to fix?

View file

@ -0,0 +1,10 @@
[[!comment format=mdwn
username="http://joeyh.name/"
ip="4.152.246.8"
subject="comment 1"
date="2012-10-16T02:52:26Z"
content="""
The smb:// is a red flag to me. git-annex relies on POSIX file locking, and I'll bet smb does not provide that, or, perhaps, your samba server needs a configuration change to support it.
You might consider putting your git annex repository on the local filesystem, and setting up a [[special_remote|special_remotes]] on smb. The [[special_remotes/directory]] special remote is a likely choice.
"""]]

View file

@ -0,0 +1,13 @@
[[!comment format=mdwn
username="https://www.google.com/accounts/o8/id?id=AItOawnZ0g2UAijV7RGrKtWPljCCAYHBJ3pwPvM"
nickname="Meng"
subject="comment 2"
date="2012-10-16T03:19:43Z"
content="""
Thanks for getting back so quick; So, after doing
git annex initremote smb type=directory directory=/Volumes/subproject/ encryption=none
git annex describe smb \"smb://XXXhost.com/subproject\"
What else do i need to do? Do i need to `git init` and/or `git annex init` in `/Volumes/subproject/`?
"""]]

View file

@ -0,0 +1,9 @@
[[!comment format=mdwn
username="http://joeyh.name/"
ip="4.152.246.8"
subject="comment 3"
date="2012-10-16T04:12:55Z"
content="""
Nope, you're set with just those two commands. You can now do things like \"git annex copy --to smb\"
to put files there, and \"git annex get\" will get files from there as necessary.
"""]]