summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-x[-rw-r--r--]hooks/post-receive0
-rw-r--r--lib/gitlab_shell.rb2
2 files changed, 2 insertions, 0 deletions
diff --git a/hooks/post-receive b/hooks/post-receive
index 6944d3e..6944d3e 100644..100755
--- a/hooks/post-receive
+++ b/hooks/post-receive
diff --git a/lib/gitlab_shell.rb b/lib/gitlab_shell.rb
index 32ee2ac..a83d16a 100644
--- a/lib/gitlab_shell.rb
+++ b/lib/gitlab_shell.rb
@@ -15,6 +15,8 @@ class GitlabShell
parse_cmd
if git_cmds.include?(@git_cmd)
+ ENV['GL_USER'] = @username
+
process_cmd
else
puts 'Not allowed command'