def fetch(version)
      # Get the reference from the branch
      ref =
        case @branch
        when Branch::Just
          @branch.ref
        when Branch::Nothing
          case version
          when String
            version
          else
            version.to_simple
          end
        end

      repository.checkout ref
    end
def fetch(version)
      # Get the reference from the branch
      ref =
        case @branch
        when Branch::Just
          @branch.ref
        when Branch::Nothing
          case version
          when String
            version
          else
            version.to_simple
          end
        end

      repository.checkout ref
    end
Downloads the version into a temporary directory

 @param version [Semverse::Version] The version to fetch

 @return [Dir] The directory for the source of the version