schubert/brewstrap — Issue #12: if /tmp/chef is not a git repo recheck out
Author: pivotal-casebook
Created: 2011-12-27 15:24:16+00:00
State: open

use git status to see if /tmp/chef is a git repo if it is not (returns non-zero error code) blow away and recheckout. Should solve most nightly cron failures when used repeatedly.