Yes, it must get this old format somewhere when deploying.
During the deployment a git clone /home/cchq/www/monolith/current/.git /home/cchq/www/monolith/releases/XXX is made, so the url should be retrieved at that time (is it right?). But I have checked the configuration files, the urls is correct.
I will keep searching in that way.
I hope to find the solution soon.
I hope you will find a solution too.
I have a question.
When deploy command is executed, what is it supposed to do with .git repository and .gitmodules file of current release ? Make an exact copy or copy first and pull from head inside ?