checkout: make it work after branch annihilation

Fixes #20

Signed-off-by: Robin Green <greenrd@greenrd.org>