Parcourir la source

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

5.0
Glenn Jocher GitHub il y a 3 ans
Parent
révision
b26a2f6242
Aucune clé connue n'a été trouvée dans la base pour cette signature ID de la clé GPG: 4AEE18F83AFDEB23
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. +1
    -1
      utils/general.py

+ 1
- 1
utils/general.py Voir le fichier

@@ -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(

Chargement…
Annuler
Enregistrer