Recent comments posted to this site:
ssh remotehost "cd /path/to/annex && git annex sync"
Not quite there yet.
git-annex init works now, but there is still a problem with paths:
Using the same setup as previously, git-annex init now works:
cd lib/submod
git annex init
But adding a file failes:
git annex add big-file
Output:
add big-file (checksum...)
git-annex: big-file: getFileStatus: does not exist (No such file or directory)
failed
(Recording state in git...)
git-annex: add: 1 failed
Debug:
[2012-10-16 13:59:26 CEST] read: git ["--git-dir=../../.git/modules/lib/submod","--work-tree=/Users/ptx/tmp/test-annex/test/lib/submod","ls-files","--others","--exclude-standard","-z","--","big-file"] [2012-10-16 13:59:26 CEST] read: git ["--git-dir=../../.git/modules/lib/submod","--work-tree=/Users/ptx/tmp/test-annex/test/lib/submod","diff","--name-only","--diff-filter=T","-z","--","big-file"] add big-file [2012-10-16 13:59:26 CEST] chat: git ["--git-dir=../../.git/modules/lib/submod","--work-tree=/Users/ptx/tmp/test-annex/test/lib/submod","check-attr","-z","--stdin","annex.backend","annex.numcopies","--"] (checksum...) [2012-10-16 13:59:26 CEST] chat: git ["--git-dir=../../.git/modules/lib/submod","--work-tree=/Users/ptx/tmp/test-annex/test/lib/submod","cat-file","--batch"]
git-annex: big-file: getFileStatus: does not exist (No such file or directory) failed
[2012-10-16 13:59:26 CEST] chat: git ["--git-dir=../../.git/modules/lib/submod","--work-tree=/Users/ptx/tmp/test-annex/test/lib/submod","hash-object","-w","--stdin-paths"]
[2012-10-16 13:59:26 CEST] feed: git ["--git-dir=../../.git/modules/lib/submod","--work-tree=/Users/ptx/tmp/test-annex/test/lib/submod","update-index","-z","--index-info"]
[2012-10-16 13:59:26 CEST] read: git ["--git-dir=../../.git/modules/lib/submod","--work-tree=/Users/ptx/tmp/test-annex/test/lib/submod","show-ref","--hash","refs/heads/git-annex"]
(Recording state in git...)
[2012-10-16 13:59:26 CEST] read: git ["--git-dir=../../.git/modules/lib/submod","--work-tree=/Users/ptx/tmp/test-annex/test/lib/submod","write-tree"]
[2012-10-16 13:59:26 CEST] chat: git ["--git-dir=../../.git/modules/lib/submod","--work-tree=/Users/ptx/tmp/test-annex/test/lib/submod","commit-tree","ed2f98d7105deed7482b3dde43426c177b360131","-p","refs/heads/git-annex"]
[2012-10-16 13:59:26 CEST] call: git ["--git-dir=../../.git/modules/lib/submod","--work-tree=/Users/ptx/tmp/test-annex/test/lib/submod","update-ref","refs/heads/git-annex","df49e7bef8409dff450ce549c40f4ab429ea3144"]
[2012-10-16 13:59:26 CEST] chat: git ["--git-dir=../../.git/modules/lib/submod","--work-tree=/Users/ptx/tmp/test-annex/test/lib/submod","cat-file","--batch"]
git-annex: add: 1 failed
smb://
partition is to publish these big data files, so other (potentially non-technical) people can download and use them. They'll not be willing to learn how to use git, let alone git-annex. And i have multiple development machines that can generate revisions/updates to these big files. I previously just rsync from/to various development machines to/from this smb partition, but i find sometimes I don't always srync in correct direction. The hope is i can have annex on these development machines, and set the smb:// partition as the remote for these git annex. But it sounds like none of the special remote will have the original form, and a normal remote is not possible on smb:// partition.
If you need a git repository with your regular file names on the smb share, none of the special remotes will meet your needs. You'd need to find a way to make it support POSIX locking to use git-annex on it in a full git repository.
But I think that in most cases a directory special remote on such a share, with the git repository kept locally and git-annex used to pull files down to it as needed, would work ok.
/Volumes/subproject
is a remote partition connected via smb://. It doesn't have a .git
. The content I mentioned previously "copied" there was copied via cp -R
. And my local annex is ~/project/subproject
and it does have .git
and .git/annex
in it.