-
- Downloads
Add username as GL_USERNAME in hooks (http)
When calling pre-receive, post-receive, and update hooks, add the GitLab username as the GL_USERNAME environment variable. This patch only handles cases where pushes are over http, or via the web interface. Later, we will address the ssh case.
Showing
- changelogs/unreleased/remote_user.yml 4 additions, 0 deletionschangelogs/unreleased/remote_user.yml
- lib/gitlab/git/hook.rb 12 additions, 6 deletionslib/gitlab/git/hook.rb
- lib/gitlab/git/hooks_service.rb 8 additions, 7 deletionslib/gitlab/git/hooks_service.rb
- lib/gitlab/git/user.rb 5 additions, 4 deletionslib/gitlab/git/user.rb
- spec/lib/gitlab/git/hook_spec.rb 5 additions, 3 deletionsspec/lib/gitlab/git/hook_spec.rb
- spec/lib/gitlab/git/hooks_service_spec.rb 1 addition, 1 deletionspec/lib/gitlab/git/hooks_service_spec.rb
- spec/lib/gitlab/git/user_spec.rb 10 additions, 8 deletionsspec/lib/gitlab/git/user_spec.rb
- spec/lib/gitlab/workhorse_spec.rb 12 additions, 2 deletionsspec/lib/gitlab/workhorse_spec.rb
- spec/models/repository_spec.rb 3 additions, 3 deletionsspec/models/repository_spec.rb
changelogs/unreleased/remote_user.yml
0 → 100644
Please register or sign in to comment