[#7005] Added Repository.set_status to ensure long clones or refreshes don't flush stale project data

Signed-off-by: Cory Johns <cjohns@slashdotmedia.com>
[#7005] Fixed test failures due to detatched c.project

Signed-off-by: Cory Johns <cjohns@slashdotmedia.com>