improve config reading when operating on remote on same host

Before the config was read each time onLocal was called, and entirely
redundantly since it's read for same-host remotes on startup.

Also a minor bug fix: When rsyncing to a same-host remote, use the
rsync-options from the repository that the user ran git-annex in, not those of
the receiving repository.
This commit is contained in:
Joey Hess 2011-10-27 14:38:59 -04:00
parent 373cad993d
commit c30366e95a
2 changed files with 17 additions and 10 deletions

View file

@ -12,6 +12,7 @@ module Annex (
AnnexState(..),
OutputType(..),
new,
newState,
run,
eval,
getState,