This is an automated email from the ASF dual-hosted git repository.

mykolabodnar pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/incubator-datalab.git


The following commit(s) were added to refs/heads/develop by this push:
     new da8cf45  [DATALAB-2356] - Ungit commit executes with error fixed
da8cf45 is described below

commit da8cf45a372cd1bf51f7a60150e38ee011d8f4c9
Author: bodnarmykola <[email protected]>
AuthorDate: Thu Jun 24 15:07:29 2021 +0300

    [DATALAB-2356] - Ungit commit executes with error fixed
---
 infrastructure-provisioning/src/general/scripts/os/git_pre_commit.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/infrastructure-provisioning/src/general/scripts/os/git_pre_commit.py 
b/infrastructure-provisioning/src/general/scripts/os/git_pre_commit.py
index fb6d7ad..3af98aa 100644
--- a/infrastructure-provisioning/src/general/scripts/os/git_pre_commit.py
+++ b/infrastructure-provisioning/src/general/scripts/os/git_pre_commit.py
@@ -30,7 +30,7 @@ data = json.loads(open("/home/" + os.environ['USER'] + 
"/.gitcreds").read())
 url = subprocess.check_output(["git", "config", "--local", 
"remote.origin.url"])
 
 for host in data.keys():
-    if host in url:
+    if host in str(url):
         if os.environ['GIT_AUTHOR_NAME'] != data[host][0] or 
os.environ['GIT_AUTHOR_EMAIL'] != data[host][1]:
             subprocess.check_output(["git", "config", "--local", "user.name", 
data[host][0]])
             subprocess.check_output(["git", "config", "--local", "user.email", 
data[host][1]])

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to