Support empty repositories
Reference discovery returns an empty list of refs. Shouldn't produce errors in that case, treat it as no changes.
Fixes #133 (closed).
First commit just removes the cancellation in tests that is not needed - cruft from previous iterations.
Edited by Mikhail Mazurskiy