This commit is contained in:
https://me.yahoo.com/a/2grhJvAC049fJnvALDXek.6MRZMTlg--#eec89 2012-10-16 16:30:57 +00:00 committed by admin
parent 148f7ee1f3
commit fdca690900

View file

@ -0,0 +1,3 @@
I'm currently integrating git-annex support into a filesystem synchronization tool that I use, and I have a use case where I'd like to run "git annex sync' on a local directory, and then automatically ssh over to remote hosts and run "git annex sync" in the related annex on that remote host. However, while I can easily "cd" on the local, there is no really easy way to "cd" on the remote without a hack.
If I could say: git annex --annex-dir=PATH sync, where PATH is the annex directory, it would solve all my problems, and would also provide a nice correlation to the --git-dir option used by most Git commands. The basic idea is that I shouldn't have to be IN the directory to run git-annex commands, I should be able to tell git-annex which directory to apply its commands to.