Our builds seem to run on a shallow git clone i.e.
git fetch --depth=1
.
I verified this by running the following build command
Oct. 31 05:25:25 PM ==> Running build command 'git --version && git rev-parse --is-shallow-repository && yarn docs:build'...
Oct. 31 05:25:25 PM git version 2.20.1
Oct. 31 05:25:25 PM true
This is a problem for our static site build using vuepress (or docusaurus) because they both use git history information to autogenerate last edit information for pages by querying the git repo's history for the file. This history is not available in shallow clones.
Now, I tried unshallowing in the build command but somehow it seems that's blocked (silently fails to do its job) in the CI environment
Oct. 31 05:39:23 PM ==> Running build command 'git --version && git rev-parse --is-shallow-repository && git fetch --unshallow && git rev-parse --is-shallow-repository && yarn docs:build'...
Oct. 31 05:39:23 PM git version 2.20.1
Oct. 31 05:39:23 PM true
Oct. 31 05:39:23 PM true
Is there any way I can get the render build runners to run a CI build with a full clone of the git repo?