Update "YOLOv5 is out of date" msg (#11061)
parent
4db6757ef9
commit
feca55719b
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue