Update inference multiple-counting (#2019)

* Update inference multiple-counting

* update github check
This commit is contained in:
Glenn Jocher authored and GitHub committed 2021-01-22 15:39:08 -08:00
1 parent 85b75d6018
commit aac33f87ad
3 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -70,7 +70,7 @@ def check_git_status():
branch = subprocess.check_output('git branch --show-current', shell=True).decode().rstrip() # current
n = int(subprocess.check_output(f'git rev-list {branch}..origin/master --count', shell=True)) # commits behind
if n > 0:
s = f"⚠️ WARNING: code is out of date by {n} {'commits' if n > 1 else 'commmit'}. " \
s = f"⚠️ WARNING: code is out of date by {n} commit{'s' * (n > 1)}. " \
f"Use 'git pull' to update or 'git clone {url}' to download latest."
else:
s = f'up to date with {url} ✅'