diff --git a/progit/templates/repo_info.html b/progit/templates/repo_info.html index dce887c..4a6abb6 100644 --- a/progit/templates/repo_info.html +++ b/progit/templates/repo_info.html @@ -13,13 +13,13 @@
If you already have a git repo:
- git remote add origin {{ config.get('GIT_URL') }}:{{ repo.fullname }}.git
+ git remote add origin {{ config.get('GIT_URL') }}:{% if repo.parent %}forks/{% endif %}{{ repo.fullname }}.git
git push -u origin master
If you have no create your git repo yet:
- git clone {{ config.get('GIT_URL') }}:{{ repo.fullname }}.git
+ git clone {{ config.get('GIT_URL') }}:{% if repo.parent %}forks/{% endif %}{{ repo.fullname }}.git
cd {{ repo.name }}
touch README.rst
git add README.rst
@@ -136,7 +136,7 @@
{% endif %}
- git url: {{ config.get('GIT_URL') }}:{{ repo.fullname }}.git
+ git url: {{ config.get('GIT_URL') }}:{% if repo.parent %}forks/{% endif %}{{ repo.fullname }}.git
{% endif %}