diff options
author | Martijn <martijn.niji@gmail.com> | 2014-01-13 21:45:28 +0100 |
---|---|---|
committer | Martijn <martijn.niji@gmail.com> | 2014-01-13 21:45:28 +0100 |
commit | 1b249f618d1a5f291625aa40dfd66fe0d5c88417 (patch) | |
tree | 1ba16a0f72dbdb228d2a352ba3d8a9c0b072f710 | |
parent | 22962389bade67856b56180d9e376bd88df91601 (diff) | |
download | gitblit-1b249f618d1a5f291625aa40dfd66fe0d5c88417.tar.gz gitblit-1b249f618d1a5f291625aa40dfd66fe0d5c88417.zip |
Improving empty repo page
Adding upstream example as well as different way to push an existing local repo
-rw-r--r-- | src/main/java/com/gitblit/wicket/pages/EmptyRepositoryPage.html | 6 | ||||
-rw-r--r-- | src/main/java/com/gitblit/wicket/pages/EmptyRepositoryPage.java | 3 |
2 files changed, 7 insertions, 2 deletions
diff --git a/src/main/java/com/gitblit/wicket/pages/EmptyRepositoryPage.html b/src/main/java/com/gitblit/wicket/pages/EmptyRepositoryPage.html index bda56946..c5f9bc95 100644 --- a/src/main/java/com/gitblit/wicket/pages/EmptyRepositoryPage.html +++ b/src/main/java/com/gitblit/wicket/pages/EmptyRepositoryPage.html @@ -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>
\ No newline at end of file +</html>
diff --git a/src/main/java/com/gitblit/wicket/pages/EmptyRepositoryPage.java b/src/main/java/com/gitblit/wicket/pages/EmptyRepositoryPage.java index 6181c426..331626de 100644 --- a/src/main/java/com/gitblit/wicket/pages/EmptyRepositoryPage.java +++ b/src/main/java/com/gitblit/wicket/pages/EmptyRepositoryPage.java @@ -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
|