# HG changeset patch # User Mads Kiilerich # Date 1579982690 -3600 # Node ID fe93c67afc4d43804e6dd4925465b22eb06b3482 # Parent 042554aec0acd8bdea9c8a6a8198a853ecd89037 ssh: use BaseSshHandler.__init__ This is the right thing to do ... and will be useful very soon. diff -r 042554aec0ac -r fe93c67afc4d kallithea/lib/vcs/backends/git/ssh.py --- a/kallithea/lib/vcs/backends/git/ssh.py Sat Jan 25 21:26:01 2020 +0100 +++ b/kallithea/lib/vcs/backends/git/ssh.py Sat Jan 25 21:04:50 2020 +0100 @@ -61,7 +61,7 @@ return None def __init__(self, repo_name, verb): - self.repo_name = repo_name + BaseSshHandler.__init__(self, repo_name) self.verb = verb def _serve(self): diff -r 042554aec0ac -r fe93c67afc4d kallithea/lib/vcs/backends/hg/ssh.py --- a/kallithea/lib/vcs/backends/hg/ssh.py Sat Jan 25 21:26:01 2020 +0100 +++ b/kallithea/lib/vcs/backends/hg/ssh.py Sat Jan 25 21:04:50 2020 +0100 @@ -57,9 +57,6 @@ return None - def __init__(self, repo_name): - self.repo_name = repo_name - def _serve(self): # Note: we want a repo with config based on .hg/hgrc and can thus not use self.db_repo.scm_instance._repo.ui baseui = make_ui(repo_path=self.db_repo.repo_full_path) diff -r 042554aec0ac -r fe93c67afc4d kallithea/lib/vcs/backends/ssh.py --- a/kallithea/lib/vcs/backends/ssh.py Sat Jan 25 21:26:01 2020 +0100 +++ b/kallithea/lib/vcs/backends/ssh.py Sat Jan 25 21:04:50 2020 +0100 @@ -55,6 +55,9 @@ """ raise NotImplementedError + def __init__(self, repo_name): + self.repo_name = repo_name + def serve(self, user_id, key_id, client_ip): """Verify basic sanity of the repository, and that the user is valid and has access - then serve the native VCS protocol for