##// END OF EJS Templates
svn: explicitly specify tunnel-user to properly map rhodecode username on svn commit via SSH backend...
dan -
r4286:c8bb3cfc default
parent child Browse files
Show More
@@ -67,9 +67,12 b' class SubversionTunnelWrapper(object):'
67 67
68 68 def command(self):
69 69 root = self.server.get_root_store()
70 username = self.server.user.username
71
70 72 command = [
71 73 self.server.svn_path, '-t',
72 74 '--config-file', self.svn_conf_path,
75 '--tunnel-user', username,
73 76 '-r', root]
74 77 log.debug("Final CMD: %s", ' '.join(command))
75 78 return command
@@ -70,8 +70,10 b' class TestSubversionServer(object):'
70 70 def test_command(self, svn_server):
71 71 server = svn_server.create()
72 72 expected_command = [
73 svn_server.svn_path, '-t', '--config-file',
74 server.tunnel.svn_conf_path, '-r', svn_server.root
73 svn_server.svn_path, '-t',
74 '--config-file', server.tunnel.svn_conf_path,
75 '--tunnel-user', svn_server.user.username,
76 '-r', svn_server.root
75 77 ]
76 78
77 79 assert expected_command == server.tunnel.command()
General Comments 0
You need to be logged in to leave comments. Login now