Use vc-git to find the git repository for org-attach
commit2c38c3acc0b5d1cb3bb26f45829d711bb6f4009c
authorCarsten Dominik <carsten.dominik@gmail.com>
Sat, 31 Aug 2013 13:58:12 +0000 (31 15:58 +0200)
committerCarsten Dominik <carsten.dominik@gmail.com>
Sat, 31 Aug 2013 13:58:12 +0000 (31 15:58 +0200)
tree174d2870c76bd8a10cf7cd9bdb2b68723891a86d
parent718306e2a1c139515bb994f86ba82b45b88bd7ce
Use vc-git to find the git repository for org-attach

* lisp/org-attach.el (org-attach-commit): Use vc-git to find the git
repository.

Org attach use to fail to commit the attached file in git or git annex
when the .git repository is not in the data sub-directory.

This new code will use vc-git to find the .git file, and from this do
what is needed for committing file into git or git annex.

Patch by Remi Vanicat
lisp/org-attach.el