Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZeger-Jan van de Weg <git@zjvandeweg.nl>2018-11-07 14:37:55 +0300
committerZeger-Jan van de Weg <git@zjvandeweg.nl>2018-11-12 11:03:48 +0300
commitba50a4514923186a3131f907da9af1489706a7bb (patch)
tree6a42b9aa5928e5bd17f01c242a637853b7c6a613
parent1a4581d04d67d2821e5df6866af8ba6bbef40960 (diff)
Remove dead code post 10.8
As the comment that was removed suggests, this could be removed now as we're now well past 10.8.
-rw-r--r--changelogs/unreleased/zj-remove-10-8-code.yml5
-rw-r--r--ruby/lib/gitlab/git/committer_with_hooks.rb8
2 files changed, 5 insertions, 8 deletions
diff --git a/changelogs/unreleased/zj-remove-10-8-code.yml b/changelogs/unreleased/zj-remove-10-8-code.yml
new file mode 100644
index 000000000..fec6c24db
--- /dev/null
+++ b/changelogs/unreleased/zj-remove-10-8-code.yml
@@ -0,0 +1,5 @@
+---
+title: Remove dead code post 10.8
+merge_request: 964
+author:
+type: other
diff --git a/ruby/lib/gitlab/git/committer_with_hooks.rb b/ruby/lib/gitlab/git/committer_with_hooks.rb
index 5840d81df..90e98e729 100644
--- a/ruby/lib/gitlab/git/committer_with_hooks.rb
+++ b/ruby/lib/gitlab/git/committer_with_hooks.rb
@@ -9,9 +9,6 @@ module Gitlab
end
def commit
- # TODO: Remove after 10.8
- return super unless allowed_to_run_hooks?
-
result = Gitlab::Git::OperationService.new(git_user, gl_wiki.repository).with_branch(
@wiki.ref,
start_branch_name: @wiki.ref
@@ -27,11 +24,6 @@ module Gitlab
private
- # TODO: Remove after 10.8
- def allowed_to_run_hooks?
- @options[:user_id] != 0 && @options[:username].present?
- end
-
def git_user
@git_user ||= Gitlab::Git::User.new(@options[:username],
@options[:name],