From b26a2f624286a4b6cfb8fd3f9a97ba95b356db62 Mon Sep 17 00:00:00 2001 From: Glenn Jocher Date: Sun, 17 Jan 2021 11:55:25 -0800 Subject: [PATCH] check_git_status() when not exist /workspace (#1966) --- utils/general.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/general.py b/utils/general.py index 92cf683..23dbc93 100755 --- a/utils/general.py +++ b/utils/general.py @@ -60,7 +60,7 @@ def check_git_status(): # Recommend 'git pull' if code is out of date print(colorstr('github: '), end='') try: - if Path('.git').exists() and not Path('/.dockerenv').exists() and check_online(): + if Path('.git').exists() and not Path('/workspace').exists() and check_online(): # not exist '/.dockerenv' url = subprocess.check_output( 'git fetch && git config --get remote.origin.url', shell=True).decode('utf-8')[:-1] n = int(subprocess.check_output(