Handle missing workdir regardless of bare status

Previously, we checked whether the repo was bare in order to bail out
early. Instead, just bail out if the workdir is unavailable. This is
more robust against more exotic forms of git checkouts.

Bug: 169246218
Change-Id: Id257ebb461b6b9c005d8548c98c73cbc5b85a727
1 file changed