Illegal character in path with Git Submodules

Still need help?

The Atlassian Community is here for you.

Ask the community

Symptoms

After making changes to the .gitmodules file, the following appears in the atlassian-bitbucket.log:

$stringEscapeUtils.escapeHtml($body)

Cause

This is caused by the line endings of the .gitmodules file not being in the correct format and is likely because Windows style line endings were committed to the repository.

Resolution

  1. Use dos2unix to convert the line endings to the correct format:

    dos2unix .gitmodules
  2. Commit the file and push it back to the Bitbucket Server instance.

Last modified on Sep 20, 2019

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.