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

serving canopy blogs from a local git repository #67

Open
gasche opened this issue Oct 14, 2016 · 2 comments
Open

serving canopy blogs from a local git repository #67

gasche opened this issue Oct 14, 2016 · 2 comments

Comments

@gasche
Copy link
Contributor

gasche commented Oct 14, 2016

I would like to test a local git repository for Canopy blog posts before pushing it to the actual repo. I built Canopy locally, but then I have not manage to get it to read posts from a local git repository.

$ ./mir-canopy -r /home/gasche/Scolaire/neu/icfp-sv/icfp2016-blog/ -i Welcome -p 8080 -u 12345
Manager: connect
Manager: configuring
2016-10-14 20:45.10: INF [git.memory] Reading HEAD
Pulling repository
Fail pull (Failure "Unknown Git protocol")
2016-10-14 20:45.10: INF [git.memory] Reading HEAD
2016-10-14 20:45.10: INF [git.memory] Reading refs/heads/master
2016-10-14 20:45.10: INF [git.memory] Reading HEAD
2016-10-14 20:45.10: INF [git.memory] Reading HEAD
2016-10-14 20:45.10: INF [git.memory] Reading refs/heads/master
HTTP server listening on port 8080
$ ./mir-canopy -r file:///home/gasche/Scolaire/neu/icfp-sv/icfp2016-blog/ -i Welcome -p 8080 -u 12345
Manager: connect
Manager: configuring
2016-10-14 20:44.41: INF [git.memory] Reading HEAD
Pulling repository
Fail pull (Failure "file is not a supported Git protocol")
2016-10-14 20:44.41: INF [git.memory] Reading HEAD
2016-10-14 20:44.41: INF [git.memory] Reading refs/heads/master
2016-10-14 20:44.41: INF [git.memory] Reading HEAD
2016-10-14 20:44.41: INF [git.memory] Reading HEAD
2016-10-14 20:44.41: INF [git.memory] Reading refs/heads/master
HTTP server listening on port 8080

Could this be supported? I grepped for not a supported protocol in the sources but couldn't find any hit for this error message. Which piece of the ecosystem is it that fails to support file?

Also, why does Canopy still run a server and loops infinitely when it failed to resolve the Git repository? Is there anything useful in that, or could it just not quit on this error?

@hannesm
Copy link
Collaborator

hannesm commented Oct 14, 2016

Canopy should quit if it fails to load its remote git repository.

I suspect the code responsible for resolution of protocol to how to communicate there is likely hidden somewhere in git or in conduit, but I'm not able to spot it right now... @samoht might be able to quickly point out where the code is

@samoht
Copy link
Contributor

samoht commented Oct 15, 2016

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

3 participants