glenn-jocher commited on
Commit
3a72d4a
·
unverified ·
1 Parent(s): 35fe031

Update `check_git_status()` warning (#4610)

Browse files
Files changed (1) hide show
  1. utils/general.py +1 -2
utils/general.py CHANGED
@@ -162,8 +162,7 @@ def check_git_status():
162
  branch = check_output('git rev-parse --abbrev-ref HEAD', shell=True).decode().strip() # checked out
163
  n = int(check_output(f'git rev-list {branch}..origin/master --count', shell=True)) # commits behind
164
  if n > 0:
165
- s = f"⚠️ WARNING: code is out of date by {n} commit{'s' * (n > 1)}. " \
166
- f"Use 'git pull' to update or 'git clone {url}' to download latest."
167
  else:
168
  s = f'up to date with {url} ✅'
169
  print(emojis(s)) # emoji-safe
 
162
  branch = check_output('git rev-parse --abbrev-ref HEAD', shell=True).decode().strip() # checked out
163
  n = int(check_output(f'git rev-list {branch}..origin/master --count', shell=True)) # commits behind
164
  if n > 0:
165
+ s = f"⚠️ YOLOv5 is out of date by {n} commit{'s' * (n > 1)}. Use `git pull` or `git clone {url}` to update."
 
166
  else:
167
  s = f'up to date with {url} ✅'
168
  print(emojis(s)) # emoji-safe