fatal: Not a git repository, GIT_DISCOVERY_ACROSS_FILESYSTEM not set


アトラシアン コミュニティをご利用ください。


プラットフォームについて: Server および Data Center のみ。この記事は、Server および Data Center プラットフォームのアトラシアン製品にのみ適用されます。

Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.

*Fisheye および Crucible は除く


The following exception appears when:

  • Remote agent perform checkout
  • Bamboo runs Change Detection as part of a Plan or for its automated actions
Cannot fetch branch 'BRANCH_NAME' from 'REPO_URL' to source directory '/var/atlassian/application-data/bamboo/xml-data/build-dir/_git-repositories-cache/HASH'. command /usr/local/bin/git fetch URL +refs/heads/develop:refs/heads/develop --update-head-ok failed with code 128. Working directory was [/var/atlassian/application-data/bamboo/xml-data/build-dir/_git-repositories-cache/HASH]., stderr: fatal: Not a git repository (or any parent up to mount point /mnt) Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).


  1. Check if there is any special character in the branch name
  2. Run the command "locale" to confirm if it is using UTF-8 or en_US.UTF-8
  3. Please run the following command to check that the specific cache directory and its contents exist and are accessible by the Bamboo user:

    ls -alR <bamboo-home>/xml-data/build-dir/_git-repositories-cache/HASH/.git

    Please be sure to replace the filepath with the path in the error message.


  1. Remote agent is not using file encoding UTF-8
  2. The machine is not using UTF-8 or en_US.UTF-8. The configured locale does not work well in the machine
  3. This is caused by Bamboo server being unable to access the .git directory in the local repository cache


  1. Restart remote agent with the following file encoding setting in REMOTE_AGENT_HOME/conf/wrapper.conf file:

  2. Configure the machine locale to be UTF-8 or en_US.UTF-8
  3. Delete the affected local cache directory in Bamboo server

最終更新日 2019 年 6 月 21 日


Powered by Confluence and Scroll Viewport.