Commit 8a7a3f92 authored by Dylan Griffith's avatar Dylan Griffith

Remove unnecessary @pushing_directory bool in QA::Factory::Repository::Push

parent ef04bd4e
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment