Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update check_git_status() to run under ROOT working directory #5441

Merged
merged 9 commits into from
Nov 2, 2021
Prev Previous commit
Next Next commit
Remove redundant Path() call
  • Loading branch information
glenn-jocher authored Nov 2, 2021
commit 5d5a32c2488c3273f50d55e28b288037be2637a4
2 changes: 1 addition & 1 deletion utils/general.py
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ def check_git_status():
# Recommend 'git pull' if code is out of date
msg = ', for updates see https://github.com/ultralytics/yolov5'
print(colorstr('github: '), end='')
assert Path(ROOT / '.git').exists(), 'skipping check (not a git repository)' + msg
assert (ROOT / '.git').exists(), 'skipping check (not a git repository)' + msg
assert not is_docker(), 'skipping check (Docker image)' + msg
assert check_online(), 'skipping check (offline)' + msg

Expand Down