I am having the "fatal: Not a git repository (or any of the parent directories): .git"
problem, although I am in a valid git directory.
I have a project root that has .git
. I have a sub-directory site
which has a separate sbt file for building scaladocs and using the gh-pages plugin to push them to the gh-pages branch of my project.
$ git status
On branch master
Your branch is up-to-date with 'origin/master'.
$ ls -la ..
total 359148
...
drwxr-xr-x 8 myname myname 4096 Jun 18 22:41 .git
$ sbt ghpages-push-site
...
[error] fatal: Not a git repository (or any of the parent directories): .git
So what am I missing? I am in a valid git directory (as git status
confirms).
I also made a fresh checkout from origin, no luck. I ran git init
in the site
sub-directory. No luck, that error just persists.
Edit: The odd thing is, I have a different GitHub project with exactly the same layout and sbt build file, and here the problem does not occur. This works, this doesn't. Is it possible that it has to do with the latter project using a different organisation?