reuse existing git clone

This is almost identical to the ABS suggested way of dealing with git, but
keeping the option "--depth 1" to speed up cloning.

Without this change, a subsequent run will fail on git clone because the target
directory already exists.