Fix --install-plugin option to preserve real plugin name

This change fixes --install-plugin option to preserve real plugin name when
deployed during Gerrit initialization process.

Currently the plugin is deployed under temporary name, that means that SSH
commands, servlets and REST APIs have to be accessed under temporary name:

  ssh host plugin_replication_130816_2159_3701946857383653266 start --all

Beside that it breaks plugin-owned capabilities, because temporary plugin name
is not a valid git config identifier and can not be stored as capability prefix
in project.config file [1].

[1] https://groups.google.com/forum/#!topic/repo-discuss/bBThzX4gvOo
Change-Id: I86418884201f5e385fbb03253bf2c74116087b32
1 file changed