Removed the get_code and moved to refresh_code, which also includes
tests to make sure that the old directory was removed and the new one
was cloned from the remote repo