def timeout_after(seconds)
      seconds = self.class.git_timeout if seconds == true
      if seconds && seconds > 0
        Timeout.timeout(seconds) { yield }
      else
        yield
      end
    end
def timeout_after(seconds)
      seconds = self.class.git_timeout if seconds == true
      if seconds && seconds > 0
        Timeout.timeout(seconds) { yield }
      else
        yield
      end
    end
Simple wrapper around Timeout::timeout.

 seconds - Float number of seconds before a Timeout::Error is raised. When
   true, the Grit::Git.git_timeout value is used. When the timeout is less
   than or equal to 0, no timeout is established.

 Raises Timeout::Error when the timeout has elapsed.