alexander-bauer / grove

Grove is a way for developers to share git repositories directly over HTTP, without needing a central service like GitHub to connect them. Developers can share as many repositories as they like, and don't need to push their changes or branches in order to share them. It offers a featureful but extremely lightweight web interface to allow directory and repository browsing, in addition to retrieval through git. Sharing your work is as simple hitting enter.
Other
23 stars 3 forks source link

Can't view any files. #107

Closed lukevers closed 11 years ago

lukevers commented 11 years ago

Upon trying to view files, I'm getting a 500 - internal server error, but this was never the case before.

alexander-bauer commented 11 years ago

Got some more info on this.

18:56:57 INFO Starting Grove version v0.5.10-7-geebb570
18:56:57 INFO Starting server on 0.0.0.0:8861
18:56:57 INFO Serving "/home/sasha/dev"
18:56:57 INFO Web access: true
18:56:59 DEBUG View of "/go/proj/" from "127.0.0.1:34212"
18:57:08 DEBUG View of "/go/proj/grove/" from "127.0.0.1:34212"
18:57:11 DEBUG View of "/go/proj/grove/tree/" from "127.0.0.1:34212"
18:57:15 ERR View of "/go/proj/grove/blob/test-build.sh" from "127.0.0.1:34212" caused error: template: file.html:14: can't evaluate field BasePath in type *main.gitPage
2013/04/04 18:57:15 http: multiple response.WriteHeader calls
18:57:20 ERR View of "/go/proj/grove/blob/test-build.sh" from "127.0.0.1:34212" caused error: template: file.html:14: can't evaluate field BasePath in type *main.gitPage
2013/04/04 18:57:20 http: multiple response.WriteHeader calls

The key line here is, of course,

18:57:20 ERR View of "/go/proj/grove/blob/test-build.sh" from "127.0.0.1:34212" caused error: template: file.html:14: can't evaluate field BasePath in type *main.gitPage

Because gitPage no longer has the field BasePath, the file.html template has some left-over references to it.