diff options
author | Steven Thonus <steven@ln2.nl> | 2014-01-28 22:42:36 +0100 |
---|---|---|
committer | Steven Thonus <steven@ln2.nl> | 2014-03-25 22:13:15 +0100 |
commit | f79bb5a307cd8ec5fa1c765779640667e70da5b4 (patch) | |
tree | f8bd79c49f75cc446095a75ec48eccd68e13d90d /lib/gitlab_net.rb | |
parent | ce88b74d52410250427116349d06a74359a65b48 (diff) | |
download | gitlab-shell-f79bb5a307cd8ec5fa1c765779640667e70da5b4.tar.gz |
first setup to protect protected branched to force updates
rebased for new code
Diffstat (limited to 'lib/gitlab_net.rb')
-rw-r--r-- | lib/gitlab_net.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab_net.rb b/lib/gitlab_net.rb index e4b1808..cab64bd 100644 --- a/lib/gitlab_net.rb +++ b/lib/gitlab_net.rb @@ -6,7 +6,7 @@ require_relative 'gitlab_config' require_relative 'gitlab_logger' class GitlabNet - def allowed?(cmd, repo, actor, ref, oldrev = nil, newrev = nil) + def allowed?(cmd, repo, actor, ref, oldrev = nil, newrev = nil, forced_push = false) project_name = repo.gsub("'", "") project_name = project_name.gsub(/\.git\Z/, "") project_name = project_name.gsub(/\A\//, "") |