summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Ipsum <richardipsum@fastmail.co.uk>2014-05-04 11:36:28 +0100
committerRichard Ipsum <richardipsum@fastmail.co.uk>2014-05-04 12:44:49 +0100
commitf6f975c4b3cd4b0417c61bb01f246297e87321f1 (patch)
tree412676946d7a7752bdf71c14b33d203690d806f8
parent25978dd00e0a77b9fcc36264a6602510c7407dab (diff)
downloadgitano-f6f975c4b3cd4b0417c61bb01f246297e87321f1.tar.bz2
Make gitano-smart-http pass repo_root to is_authorized
-rwxr-xr-xbin/gitano-smart-http.cgi.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/gitano-smart-http.cgi.in b/bin/gitano-smart-http.cgi.in
index 017c4e7..f294b28 100755
--- a/bin/gitano-smart-http.cgi.in
+++ b/bin/gitano-smart-http.cgi.in
@@ -59,7 +59,8 @@ if request_method == "GET" or request_method == "POST" then
local user = os.getenv("REMOTE_USER") or "gitano/anonymous"
local cmdline = parse_request(request_method)
- if cmdline and gitano.auth.is_authorized(user, "http", cmdline) then
+ if cmdline and gitano.auth.is_authorized(user, "http", cmdline,
+ os.getenv("GITANO_ROOT")) then
local proc = subprocess.spawn_simple({"git", "http-backend"})
local exit_code