--no-push and remote.name.annex-push prevent exporting trees to special remotes

Users may want sync to only export, or only import and this is broadly
analagous to push and pull, so it makes sense to use the same
configuration for it.
This commit is contained in:
Joey Hess 2019-03-09 13:21:49 -04:00
parent d9ee048d85
commit 633021e135
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38
4 changed files with 21 additions and 12 deletions

View file

@ -64,7 +64,7 @@ exportToRemotes rs = do
forM rs $ \r -> do
Annex.changeState $ \st -> st { Annex.errcounter = 0 }
start <- liftIO getCurrentTime
void $ Command.Sync.seekExportContent rs
void $ Command.Sync.seekExportContent Nothing rs
=<< getCurrentBranch
-- Look at command error counter to see if the export
-- didn't work.