def clone_or_update
      if File.directory?(@dir + "/.git")
        if Git.open(@dir).remote.url == @config.repository_url
          update
        else
          clone
        end
      else
        clone
      end

      @repo.checkout(@config.branch)
    end
def clone_or_update
      if File.directory?(@dir + "/.git")
        if Git.open(@dir).remote.url == @config.repository_url
          update
        else
          clone
        end
      else
        clone
      end

      @repo.checkout(@config.branch)
    end
Private: Clones or Updates the local copy of the remote wiki

 Returns nothing