Ignore detach exit code.

Detach doesn't seem to work on the RHEL6.3 provided git so ignore
it failing instead of stopping the checkout if it isn't supported.

Change-Id: I23640590e24f4428e46bc35496aa65caa157deb2