saltstack/salt — pull request #1596 by avimar (2012-07-09 09:21:07+00:00)
Title: When GIT cloning to existing but folder, automatically delete it.

I reworked the logic and de-duped the error message. The logic looks right and it seems to work properly... I tested empty, non-empty.