Only add ssh options to commands that actually talk to the network.
authorFelix Krull <f_krull@gmx.de>
Fri, 14 Feb 2014 21:12:42 +0000 (22:12 +0100)
committerFelix Krull <f_krull@gmx.de>
Sun, 16 Feb 2014 20:48:34 +0000 (21:48 +0100)
commit744f3cc4094062ef1f6a80c644d82b6284d2f7fc
tree59b6d804e2ad08e065d8f7b78a1ec88252ced749
parent50079b58192ed7a2af1ba6756f75084bc74d33e8
Only add ssh options to commands that actually talk to the network.

At least in Mercurial 2.8.2, --ssh seems to be a command-specific parameter in
contrast to a global one. As a result, local commands error when seeing a --ssh
parameter. This change passes --ssh only for commands that actually talk to the
network ('incoming', 'pull' and 'clone' here).
lib/puppet/provider/vcsrepo/hg.rb