Closed drj11 closed 11 years ago
(morty will have a field day)
I think it might be git versions. free.scraperwiki.com, where this works, has:
$ git --version
git version 1.7.9.5
premium.scraperwiki.com, where this does not work, has:
$ git --version
git version 1.8.1.2
I continue to investigate.
It is the change in git versions.
In git version 1.8 you have to set all 4 of:
GIT_COMMITTER_EMAIL
GIT_COMMITTER_NAME
GIT_AUTHOR_EMAIL
GIT_AUTHOR_NAME
or you can set:
git config --global user.email "you@example.com"
git config --global user.name "Your Name"
The following patch may be of interest
diff --git a/http/code.js b/http/code.js
index 07129a9..7c7542d 100644
--- a/http/code.js
+++ b/http/code.js
@@ -270,7 +270,7 @@ var enrunerate_and_poll_output = function(action) {
action = action || ""
command = "./tool/enrunerate " + action
if (action == "run") {
- command = "(export GIT_AUTHOR_NAME='Anonymous'; cd code; git init; git add scraper; git commit -am 'Ran code in browser') >/dev/null; " + command
+ command = "(git config --global user.email $(whoami); git config --global user.name Anon; cd code; git init; git add scraper; git commit -am 'Ran code in browser') >/dev/null; " + command
}
scraperwiki.exec(command, function(text) {
This is a notable case where a virtualenv wouldn't have helped. Versioning the whole chroot very much would have though!
(pretty sure this is a bug in premium not this tool, but I'm not sure what's going on yet).
For example, switch into the datahub of drj11 (me) and create a new Code in Your Browser tool (choose Python, obv, but it doens't matter), and press run. you get an error: