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

This commit is contained in:
Glenn Jocher authored and GitHub committed 2023-02-24 20:09:02 -08:00
1 parent 4db6757ef9
commit feca55719b
1 file changed
+1 -1
+1 -1
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)