Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'xsbt ghpagesPushSite' failing with java unidoc: 'fatal: Not a git repository' #58

Closed
erikerlandson opened this issue Jun 10, 2018 · 4 comments

Comments

@erikerlandson
Copy link

I have a smallish java project here:
https://github.com/erikerlandson/gibbous/tree/unidoc-issue

I attempted to set it up for generating javadoc per the instructions on your site. You can browse my sbt setup at the branch linked above.

xsbt previewSite seems to be generating what I expect, but xsbt ghpagesPushSite is failing in a strange way. I have attached the full output, but the error is this:

[info] Loading settings from build.sbt ...
[info] Set current project to gibbous (in build file:/home/eje/git/gibbous/)
[error] fatal: Not a git repository (or any parent up to mount point /home)

full output

@2m
Copy link
Member

2m commented Jun 11, 2018

For me it looks like sbt-ghpages plugin got something that was unexpected (missing git repository). Therefore I am not sure if that is related to sbt-unidoc.

@erikerlandson
Copy link
Author

I'm at a loss to guess what git repo could be missing. I executed xsbt ghpagesPushSite in my git repo. It has a gh-pages branch constructed as usual.

@2m
Copy link
Member

2m commented Jun 11, 2018

I see that you are adding some mappings in your repo. And the sbt-ghpages plugin runs some git commands depending of the mappings at least from my initial impressions. I would try digging there. :)

@erikerlandson
Copy link
Author

Found a solution here: sbt/sbt-ghpages#40
~/.sbt/ghpages was stale somehow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants