Should the following Ruby code be broken into smaller methods or should it be left 'as is' because it would fragment too much if broken up? We are not sure what the right approach should be.
We knew that small methods with individual tests are generally the best practice, however in this case it seems that doing that would spread this code too 'thinly' and greatly reduce readability. What are the best practices in this area for this type of code?

```
if $?.success?
    puts "Running git fetch"
    `git fetch`
    if $?.success?
        puts "Running git reset --hard origin/#{mbranch}"
        `git reset --hard origin/#{mbranch}`
        if $?.success?
            puts "Running git merge origin/#{branch} --no-ff -m \"STAGED:#{ticket} - #{title}\""
            mergeres=`git merge origin/#{branch} --no-ff -m "STAGED:#{ticket} - #{title}"`
            if $?.success?
               `git log -n 1 | grep "STAGED:#{ticket}"`
               if $?.success?
                  ret=true
                  if resjs eq "yes"
                     puts "Entering reservejs directory..."
                     `cd /#{dir}/zipcar-main/zipcar acs/packages/zipsite/www/reservations/reservejs`
                     if $?.success?
                        puts "Running git fetch on reservejs"
                        `git fetch`
                        if $?.success?
                           puts "Running git checkout master on reservejs"
                           `git checkout master`
                           if $?.success?
                              puts "Running git reset --hard origin/master on reservejs"
                              `git reset --hard origin/master`
                              if $?.success?
                                 puts "Running git merge origin/#{branch} on reservejs"
                                 `git merge origin/#{branch} --no-ff -m "STAGED:#{ticket} - #{title}"`
                                 if $?.success?
                                    `git log -n 1 | grep "STAGED:#{ticket}"`
                                    if $?.success?
                                       b=Dir.chdir("#{firstdir}")
                                       return true
                                    end
                                 end
                              end
                           end
                        end
                     end
                  end
               end
            else
               puts "#{mergeres}"
            end
         end
      end
   end

```