Some time in may 2014, git-annex stopped working with previous versions of git-annex.
### What steps will reproduce the problem?
Trying to sync with the server fails with:
git-annex-shell: Not a git-annex or gcrypt repository.
With older versions (e.g. 5.20140412), it's even worse:
Remote marcos does not have git-annex installed; setting annex-ignore
This could be a problem with the git-annex installation on the remote. Please make sure that git-annex-shell is available in PATH when you ssh into the remote. Once you have fixed the git-annex installation, run: git config remote.marcos.annex-ignore false
Basically, if git-annex-shell is missing, newer versions of git-annex just crash and burn instead of going the more gentle, backward-compatible way...
### What version of git-annex are you using? On what operating system?
git-annex from debian sid (5.20140517) on the "client" side and from jessie (5.20140421) on the "server".
### Please provide any additional information below.
[[!format sh """
# If you can, paste a complete transcript of the problem occurring here.
# If the problem is with the git-annex assistant, paste in .git/annex/daemon.log
ssh server
git init books
exit
git remote add server server:books
git annex sync server
# End of transcript or log.
"""]]
If this is intended behavior, it seems to me the major version of git annex should be bumped, at the very least... -- [[anarcat]]
linking ./libexec/git-core/git-checkout-index to git
linking ./libexec/git-core/git-notes to git
linking ./libexec/git-core/git-grep to git
linking ./libexec/git-core/git-blame to git
linking ./libexec/git-core/git-verify-tag to git
linking ./libexec/git-core/git-write-tree to git
linking ./libexec/git-core/git-log to git
linking ./libexec/git-core/git-stage to git
linking ./libexec/git-core/git-update-ref to git
linking ./libexec/git-core/git-status to git
linking ./libexec/git-core/git-show-branch to git
linking ./libexec/git-core/git-merge-file to git
linking ./libexec/git-core/git-for-each-ref to git
linking ./libexec/git-core/git to git
linking ./libexec/git-core/git-replace to git
linking ./libexec/git-core/git-update-index to git
linking ./libexec/git-core/git-annotate to git
linking ./libexec/git-core/git-patch-id to git
linking ./libexec/git-core/git-merge-recursive to git
linking ./libexec/git-core/git-rm to git
linking ./libexec/git-core/git-ls-tree to git
linking ./libexec/git-core/git-update-server-info to git
linking ./libexec/git-core/git-diff-tree to git
linking ./libexec/git-core/git-merge-tree to git
linking ./libexec/git-core/git-mktag to git
linking ./libexec/git-core/git-rev-list to git
linking ./libexec/git-core/git-column to git
linking ./libexec/git-core/git-apply to git
linking ./libexec/git-core/git-var to git
linking ./libexec/git-core/git-rev-parse to git
linking ./libexec/git-core/git-archive to git
linking ./libexec/git-core/git-verify-pack to git
linking ./libexec/git-core/git-push to git
linking ./libexec/git-core/git-commit to git
linking ./libexec/git-core/git-tag to git
linking ./libexec/git-core/git-pack-refs to git
linking ./libexec/git-core/git-fmt-merge-msg to git
linking ./libexec/git-core/git-fast-export to git
linking ./libexec/git-core/git-remote-ext to git
linking ./libexec/git-core/git-mailsplit to git
linking ./libexec/git-core/git-send-pack to git
linking ./libexec/git-core/git-diff-index to git
linking ./libexec/git-core/git-mailinfo to git
linking ./libexec/git-core/git-revert to git
linking ./libexec/git-core/git-diff-files to git
linking ./libexec/git-core/git-merge-ours to git
linking ./libexec/git-core/git-show-ref to git
linking ./libexec/git-core/git-diff to git
linking ./libexec/git-core/git-clean to git
linking ./libexec/git-core/git-bundle to git
linking ./libexec/git-core/git-check-mailmap to git
linking ./libexec/git-core/git-describe to git
linking ./libexec/git-core/git-branch to git
linking ./libexec/git-core/git-checkout to git
linking ./libexec/git-core/git-name-rev to git
linking ./libexec/git-core/git-gc to git
linking ./libexec/git-core/git-fetch to git
linking ./libexec/git-core/git-whatchanged to git
linking ./libexec/git-core/git-cherry to git
linking ./libexec/git-core/git-reflog to git
linking ./libexec/git-core/git-hash-object to git
linking ./libexec/git-core/git-init-db to git
linking ./libexec/git-core/git-rerere to git
linking ./libexec/git-core/git-reset to git
linking ./libexec/git-core/git-stripspace to git
linking ./libexec/git-core/git-prune to git
linking ./libexec/git-core/git-mktree to git
linking ./libexec/git-core/git-unpack-file to git
linking ./libexec/git-core/git-remote to git
linking ./libexec/git-core/git-commit-tree to git
linking ./libexec/git-core/git-symbolic-ref to git
linking ./libexec/git-core/git-credential to git
linking ./libexec/git-core/git-check-ignore to git
linking ./libexec/git-core/git-shortlog to git
linking ./libexec/git-core/git-fetch-pack to git
linking ./libexec/git-core/git-clone to git
linking ./libexec/git-core/git-mv to git
linking ./libexec/git-core/git-read-tree to git
linking ./libexec/git-core/git-merge-subtree to git
linking ./libexec/git-core/git-ls-remote to git
linking ./libexec/git-core/git-config to git
linking ./libexec/git-core/git-cherry-pick to git
linking ./libexec/git-core/git-merge to git
linking ./libexec/git-core/git-prune-packed to git
linking ./libexec/git-core/git-count-objects to git
linking ./libexec/git-core/git-merge-base to git
linking ./libexec/git-core/git-index-pack to git
linking ./libexec/git-core/git-repack to git
linking ./libexec/git-core/git-show to git
linking ./libexec/git-core/git-fsck-objects to git
linking ./libexec/git-core/git-format-patch to git
linking ./libexec/git-core/git-bisect--helper to git
linking ./libexec/git-core/git-upload-archive to git
linking ./libexec/git-core/git-ls-files to git
linking ./libexec/git-core/git-check-attr to git
linking ./libexec/git-core/git-get-tar-commit-id to git
linking ./libexec/git-core/git-remote-fd to git
linking ./libexec/git-core/git-unpack-objects to git
linking ./libexec/git-core/git-add to git
linking ./libexec/git-core/git-check-ref-format to git
linking ./libexec/git-core/git-merge-index to git
linking ./libexec/git-core/git-pack-objects to git
linking ./libexec/git-core/git-receive-pack to git
linking ./libexec/git-core/git-pack-redundant to git
linking ./libexec/git-core/git-shell to git-shell
linking ./libexec/git-core/git-upload-pack to git-upload-pack
Installation complete
\"\"\"]]
Running “/data/data/ga.androidterm/bin/busybox --install /data/data/ga.androidterm/bin” outputs the same error messages. I can run “touch /data/data/ga.androidterm/bin/hello” or “ln -s busybox /data/data/ga.androidterm/bin/hello” and it works.
It seems Samsung includes a SELinux thing (dubbed KNOX) on the Galaxy devices. Alas, I failed to find a clear answer as to what an app developer is supposed to do to make something like this work. “ls -Z /system/bin” shows various contexts such as u:object_r:system_file:s0, u:object_r:mtp_exec_s0, u:object_r:time_daemon_exec:s0. “ls -Z /data/data/ga.androidterm/{bin,lib}” shows u:object_r:app_data_file:s0 for everything. “ls -Z /data/app-lib/ga.androidterm-1” shows u:object_r:app_library_file:s0 for everything.
Now i begin to suspect that daemon doesn't work with CIF mounted directories at all.
mkdir ~/test-container
mkdir ~/test-container/test
mount -t cifs -o user=test_user,uid=502,gid=502 //srv/test ~/test-container/test
cd ~/test-container
git init
git annex init
git annex direct
git annex add
git annex sync
git annex assistant
Then if i place any file in ~/test-container then git-annex sees changes and processes it almost immediately. But if i do anything inside mounted ~/test-container/test daemon ignores it.
\"git annex status\" says that yes there are changes inside \"~/test-container/test\" and i can commit them via \"git annex add\" & \"git annex sync\", but daemon ignores.
I'd delete the repo and recreate it but I can't do that either - deleting works from webapp but when recreating it says there is already a repo by that name. enableing that repo leads me to this situation again.
Is there any fast way to rsync a direct-mode (assistant) git/annex directory from one machine to another?
Scenario: I was already using unison to synchronize 40GB between my desktop and laptop. I've added git annex to my desktop, but is there a way to bootstrap on my laptop without needing to re-transfer all the files? (I don't have a .git on my laptop yet but all the files are there already.)