%inherit file="/base/base.html"/> <%namespace name="changelog_table" file="/changelog/changelog_table.html"/> <%block name="title"> ${_('%s Summary') % c.repo_name} %block> <%def name="breadcrumbs_links()"> ${_('Summary')} ##FORK %if c.db_repo.fork: - ${_('Fork of')} "${c.db_repo.fork.repo_name}" %endif ##REMOTE %if c.db_repo.clone_uri: - ${_('Clone from')} "${h.credentials_filter(c.db_repo.clone_uri)}" %endif %def> <%block name="header_menu"> ${self.menu('repositories')} %block> <%block name="head_extra"> %block> <%def name="main()"> ${self.repo_context_bar('summary')}
${c.db_repo_scm_instance.alias} clone ${c.clone_repo_url} ${c.db_repo_scm_instance.alias} add README # add first file ${c.db_repo_scm_instance.alias} commit -m "Initial" # commit with message ${c.db_repo_scm_instance.alias} push ${'origin master' if c.db_repo_scm_instance.alias == 'git' else ''} # push changes back
%if c.db_repo_scm_instance.alias == 'git': git remote add origin ${c.clone_repo_url} git push -u origin master %else: hg push ${c.clone_repo_url} %endif%endif