简体   繁体   English

在文件系统边界停止(未设置GIT_DISCOVERY_ACROSS_FILESYSTEM)

[英]Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set)

I'm trying to run heroku run rake db:migrate but I continuously get this error message: 我正在尝试运行heroku run rake db:migrate但我不断收到此错误消息:

Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set). 在文件系统边界停止(未设置GIT_DISCOVERY_ACROSS_FILESYSTEM)。

I have seen people say just type in Git Init , but when I type in that, I just get 我见过有人说只要输入Git Init ,但是当我输入时,我得到

Reinitialized existing Git repository in /home/nitrous/sapp/.git/ 在/home/nitrous/sapp/.git/中重新初始化现有的Git存储库

to test if it has something to do with your filesystem layout you can just see if the directory which holds your code is from a mounted filesystem, or if some part of your project is split across filesystems. 要测试它是否与文件系统布局有关,您可以仅查看保存代码的目录是否来自已挂载的文件系统,或者项目的某些部分是否跨文件系统拆分。

You can also try setting the environmental variable GIT_DISCOVERY_ACROSS_FILESYSTEM to 1 and retry the git operation. 您也可以尝试将环境变量GIT_DISCOVERY_ACROSS_FILESYSTEM设置为1,然后重试git操作。 NOTE: Please don't do this as a solution until you understand both how your filesystems are layed out and what the GIT_DISCOVERY_ACROSS_FILESYSTEM variable does. 注意:在您了解文件系统的布局方式以及GIT_DISCOVERY_ACROSS_FILESYSTEM变量的功能之前,请不要将此作为解决方案。

on unix it'd be like: 在Unix上它会像:

export GIT_DISCOVERY_ACROSS_FILESYSTEM=1 导出GIT_DISCOVERY_ACROSS_FILESYSTEM = 1

Note the lack of spaces between the variable, the =, and the 1 -wc 请注意,变量,=和1 -wc之间缺少空格

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM