From cf9571dfadd949fd338bc6c829db4f835c40376a Mon Sep 17 00:00:00 2001 From: "a.yankovich" Date: Wed, 5 Feb 2020 15:05:17 +0300 Subject: [PATCH] fix hash --- BuildBotLib/make.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/BuildBotLib/make.py b/BuildBotLib/make.py index 916803a..1a8227d 100644 --- a/BuildBotLib/make.py +++ b/BuildBotLib/make.py @@ -39,7 +39,9 @@ class Make(BaseModule): now = datetime.datetime.now().strftime("(%H_%M_%S)_%m-%d-%Y") m = hashlib.md5() - m.update(repo[repo.rfind('/'): len(repo) - 4] + "/" + now) + repoPath = self.getNameProjectFromGitUrl(repo) + "/" + now + + m.update(repoPath.encode('utf-8')) return m.hexdigest()