If your test depends on this value set it in your test.
Please split the commit into two: first one to move code to check_repo() with the call of the method from the original point. This way it will be obvious nothing has changed with the refactoring. second one with the rest.
Done and done.
rebased