瀏覽代碼

check_git_status() when not exist /workspace (#1966)

5.0
Glenn Jocher GitHub 3 年之前
父節點
當前提交
b26a2f6242
沒有發現已知的金鑰在資料庫的簽署中 GPG 金鑰 ID: 4AEE18F83AFDEB23
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      utils/general.py

+ 1
- 1
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(

Loading…
取消
儲存