#4855 Set the USER environment variable when pushing over http
Merged 3 years ago by pingou. Opened 3 years ago by pingou.

file modified
+2
@@ -46,6 +46,7 @@ 

          # 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 @@ 

      # These keys are optional

      for key in (

          "REMOTE_USER",

+         "USER",

          "REMOTE_ADDR",

          "CONTENT_TYPE",

          "QUERY_STRING",

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 pingou@pingoured.fr

rebased onto 1a0df314a732a051ef41f8ecebcfe651ec2a96d5

3 years ago

rebased onto 1a0df314a732a051ef41f8ecebcfe651ec2a96d5

3 years ago

rebased onto 00b9ca1

3 years ago

Pull-Request has been merged by pingou

3 years ago