I've attached a patch that fixes a minor issue in org-attach related to git annex. Basically, it ensures that a shell command is called from within the git-annex repository (i.e., the org-attach-directory). Otherwise, the command results in an error because it is called in the incorrect directory. Best, Matt