Fix updating replication credentials using te RepicationRemotesApi

The implementation of the ReplicationRemotesApi for updating a remote
introduced with I8003ec6c827 has wrongly saved the credentials (username)
in the repication.config rather than in the SecureStore, causing
the generation of non-functioning replication configs.

The credentials are read from the secure.config (or other SecureStore)
as documented in [1].

[1] https://gerrit.googlesource.com/plugins/replication/+/refs/heads/master/src/main/resources/Documentation/config.md#file-2

Change-Id: I644d73bc69589189a8762de98d1c58c263abcfd4
2 files changed
tree: 83c6edfce5f40468ea5cdcc1dda9bd554636c2b5
  1. .settings/
  2. src/
  3. .gitignore
  4. .mailmap
  5. BUILD
  6. LICENSE