Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Heroku - 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:

Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set). I have seen people say just type in Git Init, but when I type in that, I just get

fatal: Not a git repository (or any parent up to mount point /app) Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set). fatal: Not a git repository (or any parent up to mount point /app) Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set). fatal: Not a git repository (or any parent up to mount point /app) Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set). fatal: Not a git repository (or any parent up to mount point /app) Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).

Kindly guide me..

like image 914
Uzma Manzor Avatar asked Mar 24 '16 09:03

Uzma Manzor


1 Answers

You can turn off the behavior AND and warning by exporting GIT_DISCOVERY_ACROSS_FILESYSTEM=1.

Specifically, on Heroku, if you heroku config:set GIT_DISCOVERY_ACROSS_FILESYSTEM=1 the warning will go away.

It's probably because you are building a gem from source and the gemspec shells out to git, like many do today. So, you'll still get the warning fatal: Not a git repository (or any of the parent directories): .git but addressing that is for another day :)

My answer is a duplicate of:

  • comment GIT_DISCOVERY_ACROSS_FILESYSTEM problem when working with terminal and MacFusion
  • and copied from my answer in I posted an answer in https://stackoverflow.com/a/48326278/879854
like image 196
BF4 Avatar answered Oct 15 '22 16:10

BF4