| |
@@ -41,9 +41,12 @@
|
| |
"""
|
| |
# We are going to shell out to gitolite-shell. Prepare the env it needs.
|
| |
gitenv = {
|
| |
+ # Let's also provide PATH
|
| |
+ "PATH": os.environ.get("PATH"),
|
| |
# These are the vars git-http-backend needs
|
| |
"PATH_INFO": flask.request.path,
|
| |
- "REMOTE_USER": flask.request.remote_user,
|
| |
+ "REMOTE_USER": flask.request.remote_user
|
| |
+ or pagure_config["ANON_HTTP_PULL_USER"],
|
| |
"REMOTE_ADDR": flask.request.remote_addr,
|
| |
"CONTENT_TYPE": flask.request.content_type,
|
| |
"QUERY_STRING": flask.request.query_string,
|
| |
@@ -77,6 +80,7 @@
|
| |
"CONTENT_TYPE",
|
| |
"QUERY_STRING",
|
| |
"PYTHONPATH",
|
| |
+ "PATH",
|
| |
):
|
| |
if not gitenv[key]:
|
| |
del gitenv[key]
|
| |
Signed-off-by: Patrick Uiterwijk patrick@puiterwijk.org