Compare commits

...

11 Commits

Author SHA1 Message Date
Dmitriy Zaporozhets c90a98c55c Merge pull request #3168 from jojosch/owner-link-admin-4.2
Fix link to owner of group and team in admin interface (4.2)
2013-03-07 08:28:10 -08:00
Johannes Schleifenbaum c9556c6b60 Fix link to owner of group and team in admin interface 2013-03-07 13:10:02 +01:00
Dmitriy Zaporozhets d67117b5a1 fix team events show up 2013-02-21 09:03:07 +02:00
Dmitriy Zaporozhets 26e340fc6c Merge pull request #3001 from nafu/4-2/repo_patch
Fix file_name for archive
2013-02-18 07:13:44 -08:00
Fumiya Nakamura dc1d4eab22 Fix repository.rb archive 2013-02-15 06:03:22 -08:00
Fumiya Nakamura 24a7c0f63d Fix file_name for archive 2013-02-15 04:59:34 -08:00
Dmitriy Zaporozhets e5080755a8 Merge pull request #2947 from nafu/4.2/doc_patch
Update command to execute as git user
2013-02-13 09:25:21 -08:00
Dmitriy Zaporozhets 27975fda5d Merge pull request #2962 from donnykurnia/patch-1
Update recipe_content url to same branch
2013-02-11 22:50:11 -08:00
Donny Kurnia 4d2660777b Update recipe_content url to same branch
When checking the init.d/gitlab file, it should be using the same branch with the gitlabhq
2013-02-12 12:23:18 +07:00
Fumiya Nakamura 6ce2ff6697 Update command to execute as git user 2013-02-08 09:58:27 -08:00
Dmitriy Zaporozhets 970f86077a Up to 4.2 2013-02-08 09:02:30 +02:00
8 changed files with 21 additions and 12 deletions

View File

@ -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

View File

@ -1 +1 @@
4.2.0pre
4.2.0

View File

@ -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

View File

@ -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"

View File

@ -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"

View File

@ -0,0 +1,2 @@
:plain
Pager.append(#{@events.count}, "#{escape_javascript(render(@events))}");

View File

@ -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:

View File

@ -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