checkout,clone: check return value of create_symref