From 9802feaa9cc658b7c96911f3fcdc6e6f72b9ec6e Mon Sep 17 00:00:00 2001 From: Gavin D'souza Date: Tue, 28 Dec 2021 12:35:59 +0530 Subject: [PATCH] fix: Set correct remote_server for cloning Fixes https://github.com/frappe/bench/issues/1228 --- bench/app.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bench/app.py b/bench/app.py index 069d4f0d..665d5e5c 100755 --- a/bench/app.py +++ b/bench/app.py @@ -106,9 +106,11 @@ class AppMeta: def __setup_details_from_git(self): if self.use_ssh: - self.org, _repo = self.name.split(":")[1].split("/") + _first_part, _second_part = self.name.split(":") + self.remote_server = _first_part.split("@")[-1] + self.org, _repo = _second_part.split("/") else: - self.org, _repo = self.name.split("/")[-2:] + self.remote_server, self.org, _repo = self.name.split("/")[-3:] self.tag = self.branch self.repo = _repo.split(".")[0]