maybe better note for direct mode, although I dislike the walkthrough being complicated by direct mode at all

This commit is contained in:
Joey Hess 2014-08-12 14:29:36 -04:00
parent b09c02b4f9
commit 4ae25032c6

View file

@ -12,8 +12,7 @@ the symlink will break when the file is moved into a subdirectory.
But, git-annex will fix this up for you when you commit --
it has a pre-commit hook that watches for and corrects broken symlinks.
## Direct mode
Note that these git commands only work when git-annex is using indirect mode. Repositories created by the [[assistant]] are in [[direct_mode]]. Running 'git mv' in direct mode will give you an error:
fatal: This operation must be run in a work tree
(Note that if a repository is in direct mode, you can't run normal git
commands in it. Instead, just move the files using non-git commands, and
`git annex add` and `git annex sync`. This walkthrough does not make a
direct mode repository.)