The CMS Gulp task only works once and thus, while running the default gulp task locally, if you make changes to /static/admin/config.yml, Hugo will rewrite the /public/admin/config.yml file but the correct branch won't be successfully replaced on the destination file by the CMS task.
Additionally, on Netlify, we can no longer use the output of the git command, we have to use the $HEAD env var.
The CMS Gulp task only works once and thus, while running the default gulp task locally, if you make changes to /static/admin/config.yml, Hugo will rewrite the /public/admin/config.yml file but the correct branch won't be successfully replaced on the destination file by the CMS task.
Additionally, on Netlify, we can no longer use the output of the git command, we have to use the $HEAD env var.