diff options
author | Richard Ipsum <richard.ipsum@codethink.co.uk> | 2014-01-13 17:47:14 +0000 |
---|---|---|
committer | Richard Ipsum <richard.ipsum@codethink.co.uk> | 2014-01-23 17:18:41 +0000 |
commit | e06fb965041732ecd78f6b56b6c8cb7887333d38 (patch) | |
tree | d57accbaec9ebeac1cee1858d8c881ee1a731c33 | |
parent | 3277d97f2099007cd39a50c2665cc70ffa23aa07 (diff) | |
download | gitano-e06fb965041732ecd78f6b56b6c8cb7887333d38.tar.gz |
improve parse_get_request
-rwxr-xr-x | cgi/gitano-smart-http.cgi | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/cgi/gitano-smart-http.cgi b/cgi/gitano-smart-http.cgi index a5dab82..6e72975 100755 --- a/cgi/gitano-smart-http.cgi +++ b/cgi/gitano-smart-http.cgi @@ -168,14 +168,11 @@ function parse_get_request() if query_string then command = string.gsub(query_string, "^service=", "") + repo = string.match(os.getenv("PATH_INFO"), '/(.+)/info/refs') + return command .. " '" .. repo .. "'" end - local cmdline = command .. " '" .. - string.match(os.getenv("PATH_INFO"), '/(.+)/info/refs') .. "'" - - return cmdline - - -- TODO: return nil if there's no query string + return nil end function parse_post_request() |