Browse Source

Improving empty repo page

Adding upstream example as well as different way to push an existing local repo
tags/v1.4.0
Martijn 10 years ago
parent
commit
1b249f618d

+ 5
- 1
src/main/java/com/gitblit/wicket/pages/EmptyRepositoryPage.html View File

@@ -31,6 +31,10 @@
<p></p>
<pre wicket:id="remoteSyntax" style="padding: 5px 30px;"></pre>
<p></p>
<span style="padding-bottom:5px;">If your repository is meant to be kept in sync with an upstream repository, then you may add it.</span>
<p></p>
<pre wicket:id="upstreamSyntax" style="padding: 5px 30px;"></pre>
<p></p>
<h3>Learn Git</h3>
If you are unsure how to use this information, consider reviewing the <a href="http://book.git-scm.com">Git Community Book</a> or <a href="http://progit.org/book" target="_blank">Pro Git</a> for a better understanding on how to use Git.
<p></p>
@@ -52,4 +56,4 @@
</div>
</wicket:extend>
</body>
</html>
</html>

+ 2
- 1
src/main/java/com/gitblit/wicket/pages/EmptyRepositoryPage.java View File

@@ -65,7 +65,8 @@ public class EmptyRepositoryPage extends RootPage {
add(new Label("repository", repositoryName));
add(new RepositoryUrlPanel("pushurl", false, user, repository));
add(new Label("cloneSyntax", MessageFormat.format("git clone {0}", url)));
add(new Label("remoteSyntax", MessageFormat.format("git remote add origin {0}\ngit push origin master", url)));
add(new Label("remoteSyntax", MessageFormat.format("git remote add origin {0}\ngit push -u origin --all\ngit push -u origin --tags", url)));
add(new Label("upstreamSyntax", MessageFormat.format("git remote add upstream <upstream repository url>")));
}
@Override

Loading…
Cancel
Save