Fix bug 1035157: Test for git

Skip clone during create if unavailable

Check for git before cloning
Add spec tests
Merge pull request #516 from liggitt/bug_1035157_test_for_git

Merged by openshift-bot