Update "YOLOv5 is out of date" msg (#11061)

pull/11062/head
Glenn Jocher 2023-02-24 20:09:02 -08:00 committed by GitHub
parent 4db6757ef9
commit feca55719b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -338,7 +338,7 @@ def check_git_status(repo='ultralytics/yolov5', branch='master'):
n = int(check_output(f'git rev-list {local_branch}..{remote}/{branch} --count', shell=True)) # commits behind
if n > 0:
pull = 'git pull' if remote == 'origin' else f'git pull {remote} {branch}'
s += f"⚠️ YOLOv5 is out of date by {n} commit{'s' * (n > 1)}. Use `{pull}` or `git clone {url}` to update."
s += f"⚠️ YOLOv5 is out of date by {n} commit{'s' * (n > 1)}. Use '{pull}' or 'git clone {url}' to update."
else:
s += f'up to date with {url}'
LOGGER.info(s)