From fa79360bf7cd1c000b10a5a48a32ea7c2201b76d Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Sep 27 2018 10:55:07 +0000 Subject: Fix the git ssh urls in the templates Signed-off-by: Pierre-Yves Chibon --- diff --git a/pagure/templates/repo_info.html b/pagure/templates/repo_info.html index 689afa6..e2f540b 100644 --- a/pagure/templates/repo_info.html +++ b/pagure/templates/repo_info.html @@ -284,11 +284,11 @@

This repo is brand new!

{% if g.authenticated and g.repo_committer %}

If you already have a git repo:

-
git remote add origin {{ config.get('GIT_URL_SSH') }}{% if repo.parent %}forks/{% endif %}{{ repo.fullname }}.git
+              
git remote add origin {{ config.get('GIT_URL_SSH') }}{{ repo.path }}
 git push -u origin master

If you have not created your git repo yet:

-
git clone {{ config.get('GIT_URL_SSH') }}{% if repo.parent %}forks/{% endif %}{{ repo.fullname }}.git
+              
git clone {{ config.get('GIT_URL_SSH') }}{{ repo.path }}
 cd {{ repo.name }}
 touch README.rst
 git add README.rst
diff --git a/pagure/templates/repo_master.html b/pagure/templates/repo_master.html
index e105745..96daf22 100644
--- a/pagure/templates/repo_master.html
+++ b/pagure/templates/repo_master.html
@@ -164,7 +164,7 @@
                 
GIT
+ config.get('GIT_URL_GIT') }}{{ repo.path }}" readonly>
@@ -179,7 +179,7 @@
GIT
+ config.get('GIT_URL_GIT') }}docs/{{ repo.path }}" readonly>
{% endif %} @@ -213,7 +213,7 @@