Go to file
Robert Speicher e8cd04e831 Merge branch 'branch-tag-count-methods' into 'master'
Use dedicated methods for counting branches and tags

This started out as "Lets add two methods to count and cache some data" and ended up in a clean-up/fix of some existing code. The two problems were:

1. Different code was used for adding/removing branches/tags via Git and the UI
2. The code used for the UI didn't have any RSpec tests, and I couldn't find any Spinach tests either (though grepping for Spinach stuff is hard)

This MR addresses the following:

1. `Repository#branch_count` and `Repository#tag_count` are used to count and cache the number of branches/tags, these methods are then used on the branches/commits/tags pages.
2. `Repository#add_tag`, `Repository#add_branch`, `Repository#rm_tag` and `Repository#rm_branch` now all the appropriate before/after hook methods instead of calling a random single cache expiration method. This ensures caches are properly flushed when adding/removing tags/branches via the UI.
3. RSpec tests were added for the above methods.

This fixes gitlab-org/gitlab-ce#13459

See merge request !3128
2016-03-08 20:11:40 +00:00
app Merge branch 'branch-tag-count-methods' into 'master' 2016-03-08 20:11:40 +00:00
bin Direct sidekiq boot output to log file 2016-01-15 11:12:49 +01:00
builds Add missing builds/ folder to fix backup tests 2015-09-15 22:19:31 +02:00
config Merge branch 'remove-duplicate-cache_store-in-test-config' into 'master' 2016-03-08 17:26:47 +00:00
db adds swp and swo to gitignore and improves migration for project main_language 2016-03-07 21:59:39 +01:00
doc Merge branch 'evuez/gitlab-ce-add-info-user-api' into 'master' 2016-03-08 17:30:10 +00:00
docker Fix typo 2015-09-30 19:54:56 +02:00
features Remove redundant integration tests 2016-03-07 15:33:26 -05:00
fixtures/emojis Update fixtures/emojis/aliases.json 2016-02-15 23:41:44 -05:00
lib Merge branch 'evuez/gitlab-ce-add-info-user-api' into 'master' 2016-03-08 17:30:10 +00:00
log init commit 2011-10-09 00:36:38 +03:00
public Fix: Images cannot show when projects' path was changed 2015-10-14 18:50:35 +03:00
scripts Merge branch 'master' of gitlab.com:gitlab-org/gitlab-ce into feature/slack-notifications-on-ci 2016-02-18 11:12:26 +01:00
shared Make sure everyone has shared/lfs-objects 2015-12-09 16:19:59 +01:00
spec Merge branch 'branch-tag-count-methods' into 'master' 2016-03-08 20:11:40 +00:00
tmp Remove tmp/.gitkeep 2015-10-04 13:49:48 +00:00
vendor/assets Fix #7959: Fix avatar stretching by providing a cropping feature 2016-02-09 22:26:50 +01:00
.flayignore Add flay: tool to find duplicate code 2015-11-11 16:29:00 +01:00
.foreman complete hooks for post receive 2012-01-08 13:20:20 +02:00
.gitattributes Use gitattribute merge=union to reduce CHANGELOG merge conflicts. 2015-02-12 20:50:09 +01:00
.gitignore Use dedicated relative_url.rb initializer 2016-02-29 21:17:48 +01:00
.gitlab-ci.yml Precompile assets before all spinach tests 2016-03-01 15:54:25 +01:00
.hound.yml Make houndci prefer single quotes. 2014-07-16 09:38:42 +03:00
.pkgr.yml Use new way of defining services on packager.io 2015-01-18 17:55:48 +00:00
.rspec Make Fuubar the default rspec formatter 2015-06-26 01:01:13 -04:00
.rubocop.yml Disabled Rails/Date cop 2015-12-15 00:54:26 -02:00
.ruby-version revert back to ruby 2.1 - use 2.1.8 2016-02-19 17:19:57 +01:00
.simplecov organize simplecov 2013-01-07 22:23:13 +02:00
.teatro.yml teatro setup 2014-06-17 11:21:49 +03:00
CHANGELOG Merge branch 'evuez/gitlab-ce-add-info-user-api' into 'master' 2016-03-08 17:30:10 +00:00
CONTRIBUTING.md No options please. 2016-03-04 18:23:55 -08:00
GITLAB_SHELL_VERSION Added CHANGELOG for housekeeping and changed GITLAB_SHELL_VERSION to 2.6.10 2016-01-06 15:57:49 +01:00
GITLAB_WORKHORSE_VERSION Use gitlab-workhorse 0.6.5 2016-02-17 14:20:49 +01:00
Gemfile Merge branch 'issue_2805' into 'master' 2016-03-05 14:48:36 +00:00
Gemfile.lock Merge branch 'issue_2805' into 'master' 2016-03-05 14:48:36 +00:00
LICENSE Update copyright notice to 2016 [ci skip] 2016-01-03 18:28:52 +05:30
MAINTENANCE.md Add note about semantic versioning not being absolute. 2015-01-10 21:48:35 -08:00
PROCESS.md Fix wrong anchor in PROCESS.md 2016-03-02 11:00:32 +01:00
Procfile Remove duplication in Procfile 2016-01-14 15:08:22 +01:00
README.md revert back to ruby 2.1 2016-02-19 15:59:46 +01:00
Rakefile Include relative url configuration in rake tasks 2016-02-29 21:17:48 +01:00
VERSION Update CHANGELOG and VERSION for 8.6.0-pre 2016-02-22 12:41:13 +01:00
config.ru Increase Unicorn memory limits to 300-350 2016-01-20 11:52:01 +01:00
doc_styleguide.md Move doc_styleguide in the development directory 2016-01-12 11:57:42 +01:00
docker-compose.yml Update docker guide and add docker-compose.yml 2015-09-30 14:24:39 +02:00

README.md

GitLab

build status Build Status Code Climate Coverage Status

Canonical source

The source of GitLab Community Edition is hosted on GitLab.com and there are mirrors to make contributing as easy as possible.

Open source software to collaborate on code

To see how GitLab looks please see the features page on our website.

  • Manage Git repositories with fine grained access controls that keep your code secure
  • Perform code reviews and enhance collaboration with merge requests
  • Each project can also have an issue tracker and a wiki
  • Used by more than 100,000 organizations, GitLab is the most popular solution to manage Git repositories on-premises
  • Completely free and open source (MIT Expat license)
  • Powered by Ruby on Rails

Editions

There are two editions of GitLab:

  • GitLab Community Edition (CE) is available freely under the MIT Expat license.
  • GitLab Enterprise Edition (EE) includes extra features that are more useful for organizations with more than 100 users. To use EE and get official support please become a subscriber.

Website

On about.gitlab.com you can find more information about:

Requirements

Please see the requirements documentation for system requirements and more information about the supported operating systems.

Installation

The recommended way to install GitLab is with the Omnibus packages on our package server. Compared to an installation from source, this is faster and less error prone. Just select your operating system, download the respective package (Debian or RPM) and install it using the system's package manager.

There are various other options to install GitLab, please refer to the installation page on the GitLab website for more information.

You can access a new installation with the login root and password 5iveL!fe, after login you are required to set a unique password.

Install a development environment

To work on GitLab itself, we recommend setting up your development environment with the GitLab Development Kit. If you do not use the GitLab Development Kit you need to install and setup all the dependencies yourself, this is a lot of work and error prone. One small thing you also have to do when installing it yourself is to copy the example development unicorn configuration file:

cp config/unicorn.rb.example.development config/unicorn.rb

Instructions on how to start GitLab and how to run the tests can be found in the development section of the GitLab Development Kit.

Software stack

GitLab is a Ruby on Rails application that runs on the following software:

  • Ubuntu/Debian/CentOS/RHEL
  • Ruby (MRI) 2.1
  • Git 1.7.10+
  • Redis 2.8+
  • MySQL or PostgreSQL

For more information please see the architecture documentation.

Third-party applications

There are a lot of third-party applications integrating with GitLab. These include GUI Git clients, mobile applications and API wrappers for various languages.

GitLab release cycle

For more information about the release process see the release documentation.

Upgrading

For upgrading information please see our update page.

Documentation

All documentation can be found on doc.gitlab.com/ce/.

Getting help

Please see Getting help for GitLab on our website for the many options to get help.

Is it any good?

Yes

Is it awesome?

Thanks for asking this question Joshua. These people seem to like it.