puppetlabs/puppetlabs_spec_helper — pull request #30 by hunner (2012-12-28 20:06:59+00:00)
Title: Don't reset when target is missing

If the target repository clone does not exist (when ^C was pressed, for
example) then the `cd` command will fail, but the `git reset` will still
be run. This will reset the current working dir from which `rake` was
ran to be reset to `ref`. This commit keeps that from happening.