From 00b9ca12bc8615c3361f1b235a0ff13d8a27dbca Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: May 09 2020 14:54:25 +0000 Subject: Set the USER environment variable when pushing over http Some legacy script on dist-git that are not really worth porting the new the hook structure of pagure are requiring it. Fixes https://pagure.io/fedora-infrastructure/issue/7364 Signed-off-by: Pierre-Yves Chibon --- diff --git a/pagure/ui/clone.py b/pagure/ui/clone.py index a1eba21..c70149e 100644 --- a/pagure/ui/clone.py +++ b/pagure/ui/clone.py @@ -46,6 +46,7 @@ def proxy_raw_git(): # These are the vars git-http-backend needs "PATH_INFO": flask.request.path, "REMOTE_USER": flask.request.remote_user, + "USER": flask.request.remote_user, "REMOTE_ADDR": flask.request.remote_addr, "CONTENT_TYPE": flask.request.content_type, "QUERY_STRING": flask.request.query_string, @@ -79,6 +80,7 @@ def proxy_raw_git(): # These keys are optional for key in ( "REMOTE_USER", + "USER", "REMOTE_ADDR", "CONTENT_TYPE", "QUERY_STRING",