Revert "Revert "Fix submodule init on clone""

Clone without depth 1 so it can work with a bare repo that is created as
part of the testing suite.

This reverts commit 677bddfa926b34e0e67ea09d288f563a11f50198.