diff options
author | Dylan Griffith <dyl.griffith@gmail.com> | 2018-06-06 10:56:15 +0200 |
---|---|---|
committer | Dylan Griffith <dyl.griffith@gmail.com> | 2018-06-06 10:56:15 +0200 |
commit | 8a7a3f92a4979f91d793c3d9bb08f3099a0d9926 (patch) | |
tree | 4ccf32fcae9f37792c1615a5377ce73aa679e159 /qa | |
parent | ef04bd4e4bcf45f6c947ca8777b8fe7dba0158c6 (diff) | |
download | gitlab-ce-8a7a3f92a4979f91d793c3d9bb08f3099a0d9926.tar.gz |
Remove unnecessary @pushing_directory bool in QA::Factory::Repository::Push
Diffstat (limited to 'qa')
-rw-r--r-- | qa/qa/factory/repository/push.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/qa/qa/factory/repository/push.rb b/qa/qa/factory/repository/push.rb index e302f5398df..28711c12701 100644 --- a/qa/qa/factory/repository/push.rb +++ b/qa/qa/factory/repository/push.rb @@ -18,7 +18,6 @@ module QA @commit_message = "This is a test commit" @branch_name = 'master' @new_branch = true - @pushing_directory = false end def remote_branch @@ -29,7 +28,6 @@ module QA raise "Must set directory as a Pathname" unless dir.is_a?(Pathname) @directory = dir - @pushing_directory = true end def fabricate! @@ -51,7 +49,7 @@ module QA repository.checkout(branch_name) end - if @pushing_directory + if @directory @directory.each_child do |f| repository.add_file(f.basename, f.read) if f.file? end |