diff options
Diffstat (limited to 'doc/bugs/whereis_does_not_work_in_direct_mode.mdwn')
-rw-r--r-- | doc/bugs/whereis_does_not_work_in_direct_mode.mdwn | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/doc/bugs/whereis_does_not_work_in_direct_mode.mdwn b/doc/bugs/whereis_does_not_work_in_direct_mode.mdwn index 69302b0b1..701876c4d 100644 --- a/doc/bugs/whereis_does_not_work_in_direct_mode.mdwn +++ b/doc/bugs/whereis_does_not_work_in_direct_mode.mdwn @@ -1,6 +1,6 @@ ### Please describe the problem. -`git annex whereis` says that there are no copies of any of the files that have been added in repositories running in direct mode. +`git annex whereis` says that there are no copies of any of the files that have been added in repositories running in direct mode when `annex.alwayscommit` is set to `false`. In other words, if I add a file from PC1 in direct mode, `whereis` in PC2 will fail. Instead, if I add the same file from PC1 in indirect mode, `whereis` in PC2 will work correctly and will report that the file is present in PC1. @@ -20,7 +20,10 @@ The following script (available at <https://gist.github.com/gioele/dde462df89edf set -e ; set -u export LC_ALL=C - + +# alwayscommit must be set globally to affects whereis and sync +git config --global annex.alwayscommit false + direct=true # set to false to make the problem disappear h=${h:-localhost} |