You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@datalab.apache.org by my...@apache.org on 2021/06/24 12:07:46 UTC
[incubator-datalab] branch develop updated: [DATALAB-2356] - Ungit
commit executes with error fixed
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 <bo...@gmail.com>
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: commits-unsubscribe@datalab.apache.org
For additional commands, e-mail: commits-help@datalab.apache.org