<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -14,9 +14,10 @@ class Redis
     end
 
     def execute
+      return if @commands.empty?
       @redis.call_command(@commands)
       @commands.clear
     end
-    
+
   end
 end</diff>
      <filename>lib/pipeline.rb</filename>
    </modified>
    <modified>
      <diff>@@ -479,6 +479,11 @@ describe &quot;redis&quot; do
     @r.lpop('list').should == '42'
   end
 
+  it &quot;should do nothing when pipelining no commands&quot; do
+    @r.pipelined do |pipeline|
+    end
+  end
+
   it &quot;should AUTH when connecting with a password&quot; do
     r = Redis.new(:password =&gt; 'secret')
     r.stub!(:connect_to)</diff>
      <filename>spec/redis_spec.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>d4b33ef796d3abcebf045681ccb5d98ba115962c</id>
    </parent>
  </parents>
  <author>
    <name>Bryan Helmkamp</name>
    <email>bryan@brynary.com</email>
  </author>
  <url>http://github.com/brynary/redis-rb/commit/5de8899812eb02dac05a826067e52803b817ae7d</url>
  <id>5de8899812eb02dac05a826067e52803b817ae7d</id>
  <committed-date>2009-10-02T11:36:46-07:00</committed-date>
  <authored-date>2009-10-02T11:34:38-07:00</authored-date>
  <message>Fix timeout when pipelining zero commands</message>
  <tree>1865a01a0a27ee3e0ababe242638130fd5cbab6c</tree>
  <committer>
    <name>Bryan Helmkamp</name>
    <email>bryan@brynary.com</email>
  </committer>
</commit>
