{"thread":{"id":"63516","subject":"git config submodule.<name>.url cannot be a relative URL not sufficiently documented","startedAt":"2025-05-24T11:34:05Z","lastAt":"2025-05-24T11:34:05Z","messageCount":1,"participants":["Wilson, Chris G"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"518841","messageId":"PH1P110MB1153A29A736A5EF7F3DCD0F59C98A@PH1P110MB1153.NAMP110.PROD.OUTLOOK.COM","threadId":"63516","inReplyTo":null,"subject":"git config submodule.<name>.url cannot be a relative URL not sufficiently documented","fromName":"Wilson, Chris G","fromEmail":"chris.wilson@tsc.com","sentAt":"2025-05-23T19:17:37Z","receivedAt":"2025-05-24T11:34:05Z","isPatch":false,"sender":{"key":"chris.wilson@tsc.com","avatar":null},"body":"Git Team:\n\nThank you for all the work you've done. \n\nWe recently ran into an issue where we needed to modify the URLs of some submodules in repository as specified in the .gitmodules file from an absolute URL to a relative one for a CI/CD system. With a desire to leave the original repository completely untouched, we played around with using git config submodule.<name>.url to update to a relative URL. As you probably already can determine, this didn't work. We ended up having to sed the .gitmodules file in place. \n\nI propose an update to the documentation for git config (as I found in https://git-scm.com/docs/git-config) to specify that submodule.<name>.url must be an absolute URL and cannot be a relative URL (or will be treated as a relative path on the filesystem). \nAlternatively, an option in git config (or maybe git submodule?) to treat the provided URL as behaved in .gitmodules would also be appreciated. \n\nThank you for your time. \n\nSincerely,\nChris Wilson \n\n\n\n\n\n"}]}