diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-02-04 16:18:52 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-02-04 16:18:52 +0200 |
commit | d554bd90bdd5b74b46f0e6893ce415d2530672a1 (patch) | |
tree | 995a3a0a59e41517fa4b6134cd2491eaf98e04cb | |
parent | c2bf1061c2b5c739f4ced047e7cda4ce2a4929df (diff) | |
download | gitlab-shell-d554bd90bdd5b74b46f0e6893ce415d2530672a1.tar.gz |
set GL_USER
-rwxr-xr-x[-rw-r--r--] | hooks/post-receive | 0 | ||||
-rw-r--r-- | lib/gitlab_shell.rb | 2 |
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' |