{% extends "repo.html" %} {% import "utils.html" as utils with context %} {% block title %} {{repo.owner.canonical_name}}/{{repo.name}} - {% if repo.description %} {{repo.description}} - {% endif %} {{cfg("sr.ht", "site-name")}} git {% endblock %} {% block content %} {% if repo.description %}
{% endif %}
{% if message %}
{{message}}
{% endif %}
{% for c in commits %}
{{ utils.commit_event(repo, c) }}
{% endfor %}

refs

{% if default_branch %}
{{default_branch.raw_name.decode("utf-8", "replace")[len("refs/heads/"):]}}
browse {{icon("caret-right")}} log {{icon("caret-right")}}
{% endif %} {% if latest_tag %} {% set tagname = latest_tag[0].decode("utf-8", "replace") %}
{{ tagname[len("refs/tags/"):] }}
{% if is_annotated(latest_tag[1]) %} release notes {{icon("caret-right")}} {% else %} browse {{icon("caret-right")}} .{{ signature or "tar.gz" }} {{icon("caret-right")}} {% if signature %} .asc {{icon("caret-right")}} {% endif %} {% endif %}
{% endif %}

clone

{% with read_only, read_write = repo|clone_urls %}
read-only
{{read_only}}
read/write
{{read_write}}
{% endwith %}
{% if current_user == repo.owner %} Prepare a patchset {{icon('caret-right')}}

Use this or git send-email to send changes upstream.

{% elif current_user != repo.owner %}
{{csrf_token()}}

You can also use your local clone with git send-email.

{% else %}

You can contribute to this project without a {{cfg('sr.ht', 'site-name')}} account with git send-email, or you can sign up here.

{% endif %}
{% if current_user == repo.owner and not license_exists and repo.visibility.value == 'PUBLIC' %}
Heads up! We couldn't find a license file for your repository, which means that it may not be possible for others to use this project. If you're unsure of how to choose a license, consult our wiki page, choosing a software license.
{% endif %} {% if readme %}
{{ readme }}
{% endif %}
{% if len(licenses) > 0 %} {% endif %} {% endblock %}