Ensure the source is indeed a git repository