diff options
author | Douwe Maan <douwe@gitlab.com> | 2017-02-02 23:26:35 +0000 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2017-02-02 23:26:35 +0000 |
commit | e7d530a624fbb8854047c3983eaa0972a19f36c8 (patch) | |
tree | 92f77913a359ccf4078cf010add02d8b8f765490 /spec/support | |
parent | dce77b1d6d5e2b82441a685d385ee809c6b35b76 (diff) | |
parent | 54fca95160389fe7993df5d82635b83804833fee (diff) | |
download | gitlab-ce-e7d530a624fbb8854047c3983eaa0972a19f36c8.tar.gz |
Merge branch 'fix-git-hooks-when-creating-file' into 'master'
Don't execute git hooks if you create branch as part of other change
Closes #23439
See merge request !7237
Diffstat (limited to 'spec/support')
-rw-r--r-- | spec/support/cycle_analytics_helpers.rb | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/spec/support/cycle_analytics_helpers.rb b/spec/support/cycle_analytics_helpers.rb index 75c95d70951..6ed55289ed9 100644 --- a/spec/support/cycle_analytics_helpers.rb +++ b/spec/support/cycle_analytics_helpers.rb @@ -35,7 +35,13 @@ module CycleAnalyticsHelpers project.repository.add_branch(user, source_branch, 'master') end - sha = project.repository.commit_file(user, random_git_name, "content", "commit message", source_branch, false) + sha = project.repository.commit_file( + user, + random_git_name, + 'content', + message: 'commit message', + branch_name: source_branch, + update: false) project.repository.commit(sha) opts = { |