views/clone_repo.erb in brownbeagle-gitauth-0.0.4.3 vs views/clone_repo.erb in brownbeagle-gitauth-0.0.4.5

- old
+ new

@@ -4,19 +4,21 @@ <p> If you have an existing local git repository you wish to push, try... </p> <code> cd your-repo git remote add origin <%= repo_url %> - git push origin master</code> + git push origin master<%= " --force" if params[:made_empty] == "yes" %></code> <p> Otherwise, to initialize an empty repository: </p> - <code> mkdir your-repo + <% if params[:made_empty] == "yes" %> + <code>git clone <%= repo_url %></code> + <% else %><code> mkdir your-repo cd your-repo git init touch .gitignore git add .gitignore git commit -m "Added blank .gitignore to initialize repository" git remote add origin <%= repo_url %> - git push origin master</code> + git push origin master</code><% end %> <p>And you should be good to go! <a href="#" onclick="$('#repository-details').slideUp(); return false;">(close instructions)</a></p> </div> \ No newline at end of file