Illegal character in path with Git Submodules
プラットフォームについて: Data Center のみ。 - This article only applies to Atlassian apps on the Data Center プラットフォーム。
この KB は Data Center バージョンの製品用に作成されています。Data Center 固有ではない機能の Data Center KB は、製品のサーバー バージョンでも動作する可能性はありますが、テストは行われていません。 Server* 製品のサポートは 2024 年 2 月 15 日に終了しました。Server 製品を実行している場合は、 アトラシアン Server サポート終了 のお知らせにアクセスして、移行オプションを確認してください。
*Fisheye および Crucible は除く
症状
After making changes to the .gitmodules file, the following appears in the atlassian-bitbucket.log:
2014-09-03 10:49:12,833 ERROR [http-bio-7990-exec-45624] tiecimov @SCSPXTx649x2753980x1 1dxhfwc 10.4.148.55,10.100.5.155 "GET /projects/MCU32_REPOS/repos/p015_platform_alta/browse/mod HTTP/1.1" c.a.s.i.w.HandlerExceptionResolverImpl An error occurred while executing an external process: Illegal character in path at index 33: ../../folder/file.git
track = master
com.atlassian.bitbucket.exception.ServerException: An error occurred while executing an external process: Illegal character in path at index 33: ../../folder/file.git
track = master
at com.atlassian.bitbucket.scm.git.common.command.GitCommandExitHandler.evaluateThrowable(GitCommandExitHandler.java:104) ~[na:na]原因
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.
ソリューション
Use
dos2unixto convert the line endings to the correct format:dos2unix .gitmodulesCommit the file and push it back to the Bitbucket Server instance.
この内容はお役に立ちましたか?