Fixed status detection in repo.py