This factors out the function that checks directories for equivalence, and uses it to check that the upstream repo has the expected update when the controller has pushed its commit.