Use shallow clone

git repository on travis-ci is shallow repository by default. It would
fail if we try to make a full clone from a shallow clone.