##// 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 def command(self):
68 def command(self):
69 root = self.server.get_root_store()
69 root = self.server.get_root_store()
70 username = self.server.user.username
71
70 command = [
72 command = [
71 self.server.svn_path, '-t',
73 self.server.svn_path, '-t',
72 '--config-file', self.svn_conf_path,
74 '--config-file', self.svn_conf_path,
75 '--tunnel-user', username,
73 '-r', root]
76 '-r', root]
74 log.debug("Final CMD: %s", ' '.join(command))
77 log.debug("Final CMD: %s", ' '.join(command))
75 return command
78 return command
@@ -70,8 +70,10 b' class TestSubversionServer(object):'
70 def test_command(self, svn_server):
70 def test_command(self, svn_server):
71 server = svn_server.create()
71 server = svn_server.create()
72 expected_command = [
72 expected_command = [
73 svn_server.svn_path, '-t', '--config-file',
73 svn_server.svn_path, '-t',
74 server.tunnel.svn_conf_path, '-r', svn_server.root
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 assert expected_command == server.tunnel.command()
79 assert expected_command == server.tunnel.command()
General Comments 0
You need to be logged in to leave comments. Login now