diff options
author | Richard Ipsum <richard.ipsum@codethink.co.uk> | 2014-01-27 13:51:35 +0000 |
---|---|---|
committer | Richard Ipsum <richard.ipsum@codethink.co.uk> | 2014-01-27 13:51:35 +0000 |
commit | cbaa0977abc9545e7d194cb81c9c107f8d8a8f0b (patch) | |
tree | cee9bd0dabda33f1eef64dd7a195ad70f50cc6cd | |
parent | bfb17d3a2e75547e36bb27856dbb74e31b8fd347 (diff) | |
download | gitano-cbaa0977abc9545e7d194cb81c9c107f8d8a8f0b.tar.gz |
Revert "remove stream - we don't need it anymore"
This reverts commit 235f2717de4123e6925b4615fc642e50c6b8beee.
-rwxr-xr-x | cgi/gitano-smart-http.cgi | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cgi/gitano-smart-http.cgi b/cgi/gitano-smart-http.cgi index 0d34219..964c0dc 100755 --- a/cgi/gitano-smart-http.cgi +++ b/cgi/gitano-smart-http.cgi @@ -9,6 +9,8 @@ local sp = require "luxio.subprocess" gitano.config.lib_bin_path("/usr/lib/gitano/bin") gitano.config.share_path("/usr/share/gitano") +stream = sio.stderr + function is_authorized(user, cmdline) local repo_root = "/home/git/repos" local username = user @@ -44,6 +46,7 @@ function is_authorized(user, cmdline) end -- Now load the administration data + local admin_repo = gall.repository.new((repo_root or "") .. "/gitano-admin.git") if not admin_repo then @@ -78,6 +81,7 @@ function is_authorized(user, cmdline) local repo -- Find the command + ip = os.getenv("REMOTE_ADDR") or "unknown ip" gitano.log.syslog.info("Client connected from", ip, "as", username, @@ -106,6 +110,7 @@ function is_authorized(user, cmdline) end -- Validate the commandline, massaging it as necessary. + if not cmd.validate(config, repo, parsed_cmdline) then gitano.log.critical("Validation of command line failed") end |