scala - Why does fatal: Not a git repository error show up when publishing site using sbt-ghpages for valid git project? -
i having "fatal: not git repository (or of parent directories): .git" problem, although in valid git directory.
i have project root has .git. have sub-directory site has separate sbt file building scaladocs , using gh-pages plugin force them gh-pages branch of project.
$ git status on branch master branch up-to-date '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 git repository (or of parent directories): .git so missing? in valid git directory (as git status confirms).
i made fresh checkout origin, no luck. ran git init in site sub-directory. no luck, error persists.
edit: odd thing is, have different github project same layout , sbt build file, , here problem not occur. this works, this doesn't. possible has latter project using different organisation?
there clone of repo in
~/.sbt/ghpages/{organisation}/{name} which created when run in first place. if create project same organisation , git clone failed somehow directory in
~/.sbt/ghpages/{organisation}/{name} is empty , git complains there no .git directory later on. if rename orga of project, find different directory under ~/.sbt/ghpages/ , works fine found out. when remove folder organisation name (or directory repo name) should work again.
git scala github sbt
No comments:
Post a Comment