diff --git a/indefero/src/IDF/Scm/Git.php b/indefero/src/IDF/Scm/Git.php index 685e03e..cbdced4 100644 --- a/indefero/src/IDF/Scm/Git.php +++ b/indefero/src/IDF/Scm/Git.php @@ -383,8 +383,8 @@ class IDF_Scm_Git extends IDF_Scm public static function getAuthAccessUrl($project, $user, $commit=null) { - // if the user haven't registred a public ssh key, - // he can't use the write url which use the SSH authentification + // if the user haven't registered a public ssh key, + // he can't use the write url which use the SSH authentication if ($user != null) { $keys = $user->get_idf_key_list(); if (count ($keys) == 0) diff --git a/indefero/src/IDF/templates/idf/source/git/help.html b/indefero/src/IDF/templates/idf/source/git/help.html index d4ee9f0..bb9395b 100644 --- a/indefero/src/IDF/templates/idf/source/git/help.html +++ b/indefero/src/IDF/templates/idf/source/git/help.html @@ -28,6 +28,16 @@ git push origin master {/if} +{if !$project.private} +

Public access

+ +

The following URL provides anonymous public access to the repository.

+ +

The URL will not work if your project is private.

+ +git clone {$project.getRemoteAccessUrl()} +{/if} + {/block} {block context}
diff --git a/indefero/src/IDF/templates/idf/source/git/tree.html b/indefero/src/IDF/templates/idf/source/git/tree.html index 43a4220..9a3d167 100644 --- a/indefero/src/IDF/templates/idf/source/git/tree.html +++ b/indefero/src/IDF/templates/idf/source/git/tree.html @@ -50,7 +50,8 @@ {aurl 'url', 'IDF_Views_Source::download', array($project.shortname, $commit)} -

{trans 'Archive'} {trans 'Download this version'} {trans 'or'} git clone {$project.getSourceAccessUrl($user)} {trans 'Help'}

+

{trans 'Archive'} {trans 'Download this version'} {trans 'or'} + git clone {$project.getSourceAccessUrl($user)} {trans 'Help'}

{/block}