avoid pushing the special remote to origin

The sync is only to sync up the adjusted branch, not other info.
Since many tests use their own special remote named "foo",
the push broke later tests.
This commit is contained in:
Joey Hess 2019-08-08 14:33:46 -04:00
parent 298812a353
commit 57b24b2510
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38

View file

@ -1743,7 +1743,7 @@ test_export_import = intmpclonerepoInDirect $ do
-- When on an adjusted branch, this updates the master branch
-- to match it, which is necessary since the master branch is going
-- to be exported.
git_annex "sync" [] @? "sync failed"
git_annex "sync" ["--no-pull", "--no-push"] @? "sync failed"
git_annex "export" ["master", "--to", "foo"] @? "export to dir failed"
dircontains annexedfile (content annexedfile)
@ -1804,7 +1804,7 @@ test_export_import_subdir = intmpclonerepoInDirect $ do
-- When on an adjusted branch, this updates the master branch
-- to match it, which is necessary since the master branch is going
-- to be exported.
git_annex "sync" [] @? "sync failed"
git_annex "sync" ["--no-pull", "--no-push"] @? "sync failed"
-- Run three times because there was a bug that took a couple
-- of runs to lead to the wrong tree being written to the remote