diff options
Diffstat (limited to 'bin')
-rw-r--r-- | bin/gitano-smart-http.cgi.in | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/gitano-smart-http.cgi.in b/bin/gitano-smart-http.cgi.in index 94b35cd..dd14800 100644 --- a/bin/gitano-smart-http.cgi.in +++ b/bin/gitano-smart-http.cgi.in @@ -72,11 +72,11 @@ if request_method == "GET" or request_method == "POST" then start_log_level) end if cmdline and authorized then - local exit_code + local what, why - _, exit_code = repo:git_command{"http-backend"} + what, why = repo:git_command{"http-backend"} - if exit_code ~= 0 then + if what ~= "exit" then stdout:write("Status: 500 Internal Server Error\r\n\r\n") end else |