Skip to content

Commit

Permalink
Update check_git_status() warning (ultralytics#4610)
Browse files Browse the repository at this point in the history
  • Loading branch information
glenn-jocher authored Aug 30, 2021
1 parent 864032d commit fea42bf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions utils/general.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,7 @@ def check_git_status():
branch = check_output('git rev-parse --abbrev-ref HEAD', shell=True).decode().strip() # checked out
n = int(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} commit{'s' * (n > 1)}. " \
f"Use 'git pull' to update or 'git clone {url}' to download latest."
s = f"⚠️ YOLOv5 is out of date by {n} commit{'s' * (n > 1)}. Use `git pull` or `git clone {url}` to update."
else:
s = f'up to date with {url} ✅'
print(emojis(s)) # emoji-safe
Expand Down

0 comments on commit fea42bf

Please sign in to comment.