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

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2016-07-13 21:57:30 +0300
committerRobert Speicher <rspeicher@gmail.com>2016-07-13 21:57:30 +0300
commit530f5158e297f3cde27f3566cfe13bad74ba3b50 (patch)
tree270507d396bacdae8a4aa3489edfff0f47b718ca /lib/gitlab/checks/force_push.rb
parent9b0ef1559f78e58b398e428763ff97dfdc53e186 (diff)
Revert "Merge branch '18193-developers-can-merge' into 'master' "
This reverts commit 9ca633eb4c62231e4ddff5466c723cf8e2bdb25d, reversing changes made to fb229bbf7970ba908962b837b270adf56f14098f.
Diffstat (limited to 'lib/gitlab/checks/force_push.rb')
-rw-r--r--lib/gitlab/checks/force_push.rb17
1 files changed, 0 insertions, 17 deletions
diff --git a/lib/gitlab/checks/force_push.rb b/lib/gitlab/checks/force_push.rb
deleted file mode 100644
index dfa83a0eab3..00000000000
--- a/lib/gitlab/checks/force_push.rb
+++ /dev/null
@@ -1,17 +0,0 @@
-module Gitlab
- module Checks
- class ForcePush
- def self.force_push?(project, oldrev, newrev)
- return false if project.empty_repo?
-
- # Created or deleted branch
- if Gitlab::Git.blank_ref?(oldrev) || Gitlab::Git.blank_ref?(newrev)
- false
- else
- missed_refs, _ = Gitlab::Popen.popen(%W(#{Gitlab.config.git.bin_path} --git-dir=#{project.repository.path_to_repo} rev-list #{oldrev} ^#{newrev}))
- missed_refs.split("\n").size > 0
- end
- end
- end
- end
-end