diff options
| author | Pedro Alvarez <pedro.alvarez@codethink.co.uk> | 2014-07-14 15:16:15 +0000 |
|---|---|---|
| committer | Pedro Alvarez <pedro.alvarez@codethink.co.uk> | 2014-07-14 15:16:15 +0000 |
| commit | 4b8ce6875266fdd6609a217dcf2924d7d4815cc2 (patch) | |
| tree | 8d7a5edd116bf327df8f507f21eaad428b056998 /bin/gitano-smart-http.cgi.in | |
| parent | d5a76a5caf51d12c811317ac6e376942b7633770 (diff) | |
| parent | ef7cb90b7e3df1f953d9190f1193101ac4c2f9db (diff) | |
| download | gitano-baserock/morph.tar.gz | |
Merge branch 'baserock/pedroalvarez/trove-ansible3' into baserock/morphbaserock/morph
Updated to the latest version of gitano, which now allows
the user to change the skeleton path.
Diffstat (limited to 'bin/gitano-smart-http.cgi.in')
| -rwxr-xr-x | bin/gitano-smart-http.cgi.in | 3 |
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 |
