<commit_before><%# This is used to display basic git setup instructions, like on github... %>
<% flash.now[:error] = "Repository does not exist. Create one using the instructions below." %>
<div class="box">
	
<h2>Git Setup:</h2>
<pre>  <a href="http://git-scm.com/download" target="_blank">Download and Install Git</a>
  git config --global user.name "<%= User.current.login %>"
  git config --global user.email <%= User.current.mail %>
</pre>

<h2>Permission Setup:</h2>
<pre>  <%= link_to "Upload SSH Public Key", {:controller => 'gitolite_public_keys', :action => 'index'} %>
  Add yourself as a project developer: <%= link_to @project.name + " Settings", {:controller => 'projects', :action => 'settings'} %> -&gt; Members Tab -&gt; New Member
</pre>

<% 
   repo_name = params[:repository_id] || @project.repository.identifier
 -%>

<h2>Repository Setup:</h2>
<pre>  cd <%= repo_name %>
  git init
  git add .
  git commit -m 'Initializing <%= @project %> repository'
  git remote add origin <%= Setting.plugin_redmine_gitolite['developerBaseUrls'].gsub("%{name}", repo_name) %>
  git push origin master
</pre>

<h2>Existing Git Repo?</h2>
<pre>  cd existing_git_repo
  git remote add origin <%= Setting.plugin_redmine_gitolite['developerBaseUrls'].gsub("%{name}", repo_name) %>
  git push origin master
</pre>    
  
</div><commit_msg>Use repository identifier instead of project identifier<commit_after><%# This is used to display basic git setup instructions, like on github... %>
<% flash.now[:error] = "Repository does not exist. Create one using the instructions below." %>
<div class="box">
	
<h2>Git Setup:</h2>
<pre>  <a href="http://git-scm.com/download" target="_blank">Download and Install Git</a>
  git config --global user.name "<%= User.current.login %>"
  git config --global user.email <%= User.current.mail %>
</pre>

<h2>Permission Setup:</h2>
<pre>  <%= link_to "Upload SSH Public Key", {:controller => 'gitolite_public_keys', :action => 'index'} %>
  Add yourself as a project developer: <%= link_to @project.name + " Settings", {:controller => 'projects', :action => 'settings'} %> -&gt; Members Tab -&gt; New Member
</pre>

<% 
   repo_name = params[:repository_id] || @project.repository.identifier
 -%>

<h2>Repository Setup:</h2>
<pre>  cd <%= repo_name %>
  git init
  git add .
  git commit -m 'Initializing <%= @project.repository.identifier %> repository'
  git remote add origin <%= Setting.plugin_redmine_gitolite['developerBaseUrls'].gsub("%{name}", repo_name) %>
  git push origin master
</pre>

<h2>Existing Git Repo?</h2>
<pre>  cd existing_git_repo
  git remote add origin <%= Setting.plugin_redmine_gitolite['developerBaseUrls'].gsub("%{name}", repo_name) %>
  git push origin master
</pre>    
  
</div>
{'fraction_non_alphanumeric': 0.1717612809315866, 'fraction_numerical': 0.005822416302765648, 'mean_word_length': 4.621676891615542, 'pattern_counts': {'":': 0, '<': 65, '<?xml version=': 0, '>': 73, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5034476', 'n_tokens_mistral': 934, 'n_tokens_neox': 859, 'n_words': 255}