Compare commits
11 commits
master
...
4-2-stable
Author | SHA1 | Date | |
---|---|---|---|
c90a98c55c | |||
c9556c6b60 | |||
d67117b5a1 | |||
26e340fc6c | |||
dc1d4eab22 | |||
24a7c0f63d | |||
e5080755a8 | |||
27975fda5d | |||
4d2660777b | |||
6ce2ff6697 | |||
970f86077a |
|
@ -1,4 +1,11 @@
|
|||
v 4.2.0
|
||||
- Async gitolite calls
|
||||
- Teams
|
||||
- Project listing page
|
||||
- Improved search
|
||||
- Groups API
|
||||
- Improved Network Graph
|
||||
- Edit page for group
|
||||
- User show page. Via /u/username
|
||||
- Show help contents on pages for better navigation
|
||||
|
||||
|
|
|
@ -151,16 +151,16 @@ class Repository
|
|||
return nil unless commit
|
||||
|
||||
# Build file path
|
||||
file_name = self.path_with_namespace + "-" + commit.id.to_s + ".tar.gz"
|
||||
file_name = self.path_with_namespace.gsub("/","_") + "-" + commit.id.to_s + ".tar.gz"
|
||||
storage_path = Rails.root.join("tmp", "repositories")
|
||||
file_path = File.join(storage_path, file_name)
|
||||
file_path = File.join(storage_path, self.path_with_namespace, file_name)
|
||||
|
||||
# Put files into a directory before archiving
|
||||
prefix = self.path_with_namespace + "/"
|
||||
|
||||
# Create file if not exists
|
||||
unless File.exists?(file_path)
|
||||
FileUtils.mkdir_p storage_path
|
||||
FileUtils.mkdir_p File.dirname(file_path)
|
||||
file = self.repo.archive_to_file(ref, prefix, file_path)
|
||||
end
|
||||
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
%td= group.path
|
||||
%td= group.projects.count
|
||||
%td
|
||||
= link_to group.owner_name, admin_user_path(group.owner_id)
|
||||
= link_to group.owner_name, admin_user_path(group.owner)
|
||||
%td.bgred
|
||||
= link_to 'Rename', edit_admin_group_path(group), id: "edit_#{dom_id(group)}", class: "btn btn-small"
|
||||
= link_to 'Destroy', [:admin, group], confirm: "REMOVE #{group.name}? Are you sure?", method: :delete, class: "btn btn-small btn-remove"
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
%td= team.projects.count
|
||||
%td= team.members.count
|
||||
%td
|
||||
= link_to team.owner.name, admin_user_path(team.owner_id)
|
||||
= link_to team.owner.name, admin_user_path(team.owner)
|
||||
%td.bgred
|
||||
= link_to 'Rename', edit_admin_team_path(team), id: "edit_#{dom_id(team)}", class: "btn btn-small"
|
||||
= link_to 'Destroy', admin_team_path(team), confirm: "REMOVE #{team.name}? Are you sure?", method: :delete, class: "btn btn-small btn-remove"
|
||||
|
|
2
app/views/teams/show.js.haml
Normal file
2
app/views/teams/show.js.haml
Normal file
|
@ -0,0 +1,2 @@
|
|||
:plain
|
||||
Pager.append(#{@events.count}, "#{escape_javascript(render(@events))}");
|
|
@ -147,7 +147,7 @@ Fix the directory permissions for the repositories:
|
|||
# Make sure the repositories dir is owned by git and it stays that way
|
||||
sudo chmod -R ug+rwX,o-rwx /home/git/repositories/
|
||||
sudo chown -R git:git /home/git/repositories/
|
||||
find /home/git/repositories -type d -print0 | sudo xargs -0 chmod g+s
|
||||
sudo -u git -H find /home/git/repositories -type d -print0 | sudo xargs -0 chmod g+s
|
||||
|
||||
|
||||
## Add domains to list to the list of known hosts
|
||||
|
@ -191,10 +191,10 @@ To setup the MySQL/PostgreSQL database and dependencies please see [`doc/install
|
|||
cd /home/gitlab/gitlab
|
||||
|
||||
# Checkout to stable release
|
||||
sudo -u gitlab -H git checkout 4-1-stable
|
||||
sudo -u gitlab -H git checkout 4-2-stable
|
||||
|
||||
**Note:**
|
||||
You can change `4-1-stable` to `master` if you want the *bleeding edge* version, but
|
||||
You can change `4-2-stable` to `master` if you want the *bleeding edge* version, but
|
||||
do so with caution!
|
||||
|
||||
## Configure it
|
||||
|
@ -268,7 +268,7 @@ used for the `email.from` setting in `config/gitlab.yml`)
|
|||
|
||||
Download the init script (will be /etc/init.d/gitlab):
|
||||
|
||||
sudo curl --output /etc/init.d/gitlab https://raw.github.com/gitlabhq/gitlab-recipes/master/init.d/gitlab
|
||||
sudo curl --output /etc/init.d/gitlab https://raw.github.com/gitlabhq/gitlab-recipes/4-2-stable/init.d/gitlab
|
||||
sudo chmod +x /etc/init.d/gitlab
|
||||
|
||||
Make GitLab start on boot:
|
||||
|
@ -309,7 +309,7 @@ If you can't or don't want to use Nginx as your web server, have a look at the
|
|||
|
||||
Download an example site config:
|
||||
|
||||
sudo curl --output /etc/nginx/sites-available/gitlab https://raw.github.com/gitlabhq/gitlab-recipes/master/nginx/gitlab
|
||||
sudo curl --output /etc/nginx/sites-available/gitlab https://raw.github.com/gitlabhq/gitlab-recipes/4-2-stable/nginx/gitlab
|
||||
sudo ln -s /etc/nginx/sites-available/gitlab /etc/nginx/sites-enabled/gitlab
|
||||
|
||||
Make sure to edit the config file to match your setup:
|
||||
|
|
|
@ -142,7 +142,7 @@ namespace :gitlab do
|
|||
return
|
||||
end
|
||||
|
||||
recipe_content = `curl https://raw.github.com/gitlabhq/gitlab-recipes/master/init.d/gitlab 2>/dev/null`
|
||||
recipe_content = `curl https://raw.github.com/gitlabhq/gitlab-recipes/4-2-stable/init.d/gitlab 2>/dev/null`
|
||||
script_content = File.read(script_path)
|
||||
|
||||
if recipe_content == script_content
|
||||
|
|
Loading…
Reference in a new issue