gitorious:mainline.git
4 years agoAdd info about installer to Readme v3.0.2
Pawel Pierzchala [Wed, 9 Apr 2014 09:51:26 +0000 (11:51 +0200)]
Add info about installer to Readme

4 years agoProcess optional config files (memcache, resque) with ERB
Marcin Kulik [Thu, 3 Apr 2014 13:27:36 +0000 (15:27 +0200)]
Process optional config files (memcache, resque) with ERB

4 years agoAdd missing require for ERB
Marcin Kulik [Wed, 2 Apr 2014 15:50:54 +0000 (17:50 +0200)]
Add missing require for ERB

4 years agoProcess gitorious.yml with ERB
Marcin Kulik [Wed, 2 Apr 2014 15:10:50 +0000 (17:10 +0200)]
Process gitorious.yml with ERB

4 years agoAdd bin script for resque
Marcin Kulik [Wed, 2 Apr 2014 13:56:39 +0000 (15:56 +0200)]
Add bin script for resque

4 years agoMake bin/unicorn always use config/unicorn.rb as its config
Marcin Kulik [Wed, 2 Apr 2014 13:48:04 +0000 (15:48 +0200)]
Make bin/unicorn always use config/unicorn.rb as its config

4 years agoFix RailsEnv class behavior for hash lookups
Marcin Kulik [Wed, 2 Apr 2014 09:50:42 +0000 (11:50 +0200)]
Fix RailsEnv class behavior for hash lookups

4 years agoUpdate fix_missing_mr_refs rake task to fix refs in all MRs
Marcin Kulik [Tue, 1 Apr 2014 14:28:20 +0000 (16:28 +0200)]
Update fix_missing_mr_refs rake task to fix refs in all MRs

4 years agoUp UI build v3.0.1
Marcin Kulik [Mon, 24 Mar 2014 10:21:28 +0000 (11:21 +0100)]
Up UI build

4 years agoPrevent creation of commiter-removed events for removed repositories
Marcin Kulik [Fri, 21 Mar 2014 12:59:07 +0000 (13:59 +0100)]
Prevent creation of commiter-removed events for removed repositories

4 years agoInherit user setting in exec script. Refs #31
Pawel Pierzchala [Fri, 21 Mar 2014 09:56:51 +0000 (10:56 +0100)]
Inherit user setting in exec script. Refs #31

4 years agoUse configs prefixed with production in scripts. Closes #31.
Pawel Pierzchala [Thu, 20 Mar 2014 15:07:09 +0000 (16:07 +0100)]
Use configs prefixed with production in scripts. Closes #31.

4 years agoModel file is not an executable
Marcin Kulik [Thu, 20 Mar 2014 14:11:40 +0000 (15:11 +0100)]
Model file is not an executable

4 years agoFix comment editing paths
Marcin Kulik [Wed, 19 Mar 2014 15:44:55 +0000 (16:44 +0100)]
Fix comment editing paths

4 years agoUp UI build
Marcin Kulik [Wed, 19 Mar 2014 13:23:16 +0000 (14:23 +0100)]
Up UI build

4 years agoStore last MR sequence number on repository
Marcin Kulik [Tue, 18 Mar 2014 11:07:35 +0000 (12:07 +0100)]
Store last MR sequence number on repository

4 years agoSort groups alphabetically. Closes #8.
Pawel Pierzchala [Fri, 7 Mar 2014 14:24:11 +0000 (15:24 +0100)]
Sort groups alphabetically. Closes #8.

4 years agoFix push processor test expectations
Marcin Kulik [Wed, 12 Mar 2014 15:40:43 +0000 (16:40 +0100)]
Fix push processor test expectations

4 years agoCode re-formatting
Marcin Kulik [Wed, 12 Mar 2014 15:29:24 +0000 (16:29 +0100)]
Code re-formatting

4 years agoCreate MR tracking repository in MR processor *synchronously* 264
Marcin Kulik [Wed, 12 Mar 2014 15:04:46 +0000 (16:04 +0100)]
Create MR tracking repository in MR processor *synchronously*

Previously the actual repo cloning was scheduled from
MergeRequestProcessor as another background job but processor's code was
assuming that this repository is already there after issuing
CreateTrackingRepositoryCommand. Because there's no simple way to wait
for the completion of other background job from the current job
CreateTrackingRepositoryCommand learned to (optionally) do the cloning
immediately instead of putting it onto the message queue.

4 years agoRemove obsolete expectation
Marcin Kulik [Wed, 12 Mar 2014 13:54:24 +0000 (14:54 +0100)]
Remove obsolete expectation

4 years agoAdd blackbox test for CreateNewMergeRequestVersion service
Marcin Kulik [Wed, 12 Mar 2014 13:50:25 +0000 (14:50 +0100)]
Add blackbox test for CreateNewMergeRequestVersion service

4 years agoDecouple MR processing code pieces
Marcin Kulik [Wed, 12 Mar 2014 10:40:36 +0000 (11:40 +0100)]
Decouple MR processing code pieces

4 years agoEasier pushing and finding merge base when you only have a repo path
Marcin Kulik [Wed, 12 Mar 2014 10:19:47 +0000 (11:19 +0100)]
Easier pushing and finding merge base when you only have a repo path

4 years agoMake rugged_repository a private accessor as it's an impl detail
Marcin Kulik [Wed, 12 Mar 2014 10:16:55 +0000 (11:16 +0100)]
Make rugged_repository a private accessor as it's an impl detail

4 years agoAdd merge base finding support to Gitorious git abstraction layer
Marcin Kulik [Wed, 12 Mar 2014 10:15:50 +0000 (11:15 +0100)]
Add merge base finding support to Gitorious git abstraction layer

4 years agomerge_branch_name is misleading name, ref_name is THE name
Marcin Kulik [Wed, 12 Mar 2014 09:48:32 +0000 (10:48 +0100)]
merge_branch_name is misleading name, ref_name is THE name

4 years agoAdd note to Gitorious::Git::Repository#push as it's kinda special case
Marcin Kulik [Wed, 12 Mar 2014 09:43:26 +0000 (10:43 +0100)]
Add note to Gitorious::Git::Repository#push as it's kinda special case

4 years agoReorganize code in MergeRequestProcessor
Marcin Kulik [Tue, 11 Mar 2014 10:20:40 +0000 (11:20 +0100)]
Reorganize code in MergeRequestProcessor

4 years agoMove tracking repo related MR methods to its service object
Marcin Kulik [Tue, 11 Mar 2014 10:11:23 +0000 (11:11 +0100)]
Move tracking repo related MR methods to its service object

4 years agoPush to MR target repo should always be forced
Marcin Kulik [Tue, 11 Mar 2014 10:02:04 +0000 (11:02 +0100)]
Push to MR target repo should always be forced

4 years agoMove MR pushing logic out of MR model
Marcin Kulik [Tue, 11 Mar 2014 09:58:36 +0000 (10:58 +0100)]
Move MR pushing logic out of MR model

4 years agoExtract MR repos updating to services
Marcin Kulik [Tue, 11 Mar 2014 09:39:09 +0000 (10:39 +0100)]
Extract MR repos updating to services

4 years agoRecreate missing refs in target repo too
Marcin Kulik [Mon, 10 Mar 2014 14:17:48 +0000 (15:17 +0100)]
Recreate missing refs in target repo too

4 years agoRemove user switching from unicorn's sample config file
Marcin Kulik [Fri, 7 Mar 2014 17:45:43 +0000 (18:45 +0100)]
Remove user switching from unicorn's sample config file

4 years agoRevert "Remove obsolete check for ActiveSupport"
Marcin Kulik [Fri, 7 Mar 2014 17:28:17 +0000 (18:28 +0100)]
Revert "Remove obsolete check for ActiveSupport"

This reverts commit 86e4e80e5f7c174af8a4df44ea1026f3489c2afa.

4 years agoDon't overwrite BUNDLE_GEMFILE if it's already set
Marcin Kulik [Fri, 7 Mar 2014 17:18:35 +0000 (18:18 +0100)]
Don't overwrite BUNDLE_GEMFILE if it's already set

4 years agoRemove obsolete check for ActiveSupport
Marcin Kulik [Fri, 7 Mar 2014 16:59:56 +0000 (17:59 +0100)]
Remove obsolete check for ActiveSupport

4 years agoUse good old bash for preparing execution environment for bin/ commands
Marcin Kulik [Fri, 7 Mar 2014 16:25:08 +0000 (17:25 +0100)]
Use good old bash for preparing execution environment for bin/ commands

Gitorious::CLI.new.run_with_gitorious_environment in addition to
changing current working directory, setting RAILS_ENV and switching user
also initializes the Gitorious configuration loader (in order to get the
"user" setting from gitorious.yml).

bin/rake, bin/unicorn and other "gem binary" scripts used it and were
loading the requested gem binary in the same process. This approach
worked in most cases but in some cases it resulted in ambiguous app
booting paths - configuration loader was loading Gitorious classes
(before Rails was loaded) which depended on some Rails functionality
(like ActiveSupport logger) and thus required additional conditions, or
even resulted in broken functionality.

This change is a first step for moving the responsibility of preparing
proper execution environment from ruby scripts themselves to the wrapper
bash script which executes (using "exec") proper ruby/rails command after
preparing the environment.

4 years agoTweak sorting ui. Refs #7
Pawel Pierzchala [Fri, 7 Mar 2014 14:24:52 +0000 (15:24 +0100)]
Tweak sorting ui. Refs #7

4 years agoLog resque activity and errors to message_processing.log
Marcin Kulik [Thu, 6 Mar 2014 13:52:27 +0000 (14:52 +0100)]
Log resque activity and errors to message_processing.log

4 years agoFix link to sprintly profile
Pawel Pierzchala [Thu, 6 Mar 2014 13:36:23 +0000 (14:36 +0100)]
Fix link to sprintly profile

4 years agoAdd sorting on projects index. Closes #7
Pawel Pierzchala [Thu, 6 Mar 2014 13:31:04 +0000 (14:31 +0100)]
Add sorting on projects index. Closes #7

4 years agoMake sure to use the proper git binary!
Marcin Kulik [Thu, 6 Mar 2014 13:26:14 +0000 (14:26 +0100)]
Make sure to use the proper git binary!

4 years agoMake Gitorious::Git::Repository constructor take Rugged repository instance
Marcin Kulik [Thu, 6 Mar 2014 12:17:59 +0000 (13:17 +0100)]
Make Gitorious::Git::Repository constructor take Rugged repository instance

4 years agoUse Gitorious' git abstraction when pushing to MR's target and tracking repos
Marcin Kulik [Thu, 6 Mar 2014 12:08:04 +0000 (13:08 +0100)]
Use Gitorious' git abstraction when pushing to MR's target and tracking repos

4 years agoAdd push support to Gitorious::Git::Repository
Marcin Kulik [Thu, 6 Mar 2014 11:30:56 +0000 (12:30 +0100)]
Add push support to Gitorious::Git::Repository

4 years agoAdd rake task for creating missing MR refs
Marcin Kulik [Tue, 4 Mar 2014 14:31:33 +0000 (15:31 +0100)]
Add rake task for creating missing MR refs

Run it like this:
    bundle exec rake fix_missing_mr_refs PROJECT_SLUG=foo REPO_NAME=bar MR_NUMBER=123

4 years agoRestore old Project.per_page value
Pawel Pierzchala [Fri, 28 Feb 2014 14:26:25 +0000 (15:26 +0100)]
Restore old Project.per_page value

4 years agoMerge commit 'refs/merge-requests/259' of git://gitorious.org/gitorious/mainline...
Pawel Pierzchala [Fri, 28 Feb 2014 14:08:35 +0000 (15:08 +0100)]
Merge commit 'refs/merge-requests/259' of git://gitorious.org/gitorious/mainline into merge-requests/259

4 years agoFix content membership validation failing when content id is in use on another conten... 259
Håkon Lerring [Fri, 21 Feb 2014 18:54:29 +0000 (19:54 +0100)]
Fix content membership validation failing when content id is in use on another content type with the same ID.

4 years agoFix XSS issue when rendering commit messages
Marcin Kulik [Tue, 11 Feb 2014 11:02:27 +0000 (12:02 +0100)]
Fix XSS issue when rendering commit messages

I took the opportunity to move some logic out of templates, and put it
into CommitPresenter.

4 years agoRemove dead code
Marcin Kulik [Mon, 10 Feb 2014 13:55:11 +0000 (14:55 +0100)]
Remove dead code

4 years agoFix mirroring push command
Pawel Pierzchala [Fri, 7 Feb 2014 16:20:50 +0000 (17:20 +0100)]
Fix mirroring push command

4 years agoTranslate Shoulda syntax into Spec syntax
Pawel Pierzchala [Fri, 7 Feb 2014 16:19:36 +0000 (17:19 +0100)]
Translate Shoulda syntax into Spec syntax

4 years agoUse Spec instead of Should syntax if enable standby mode test
Pawel Pierzchala [Fri, 7 Feb 2014 12:22:44 +0000 (13:22 +0100)]
Use Spec instead of Should syntax if enable standby mode test

4 years agoPass standby file/symlink paths to StandbyModeCommands explicitly
Marcin Kulik [Tue, 16 Jul 2013 15:17:43 +0000 (17:17 +0200)]
Pass standby file/symlink paths to StandbyModeCommands explicitly

4 years agoUse exception to report missing master key in standby-mode
Marcin Kulik [Tue, 16 Jul 2013 14:53:54 +0000 (16:53 +0200)]
Use exception to report missing master key in standby-mode

4 years agoAdd master_public_key to sample config file
Marcin Kulik [Tue, 16 Jul 2013 12:29:54 +0000 (14:29 +0200)]
Add master_public_key to sample config file

4 years agoDRY up standby-mode script
Marcin Kulik [Tue, 16 Jul 2013 12:03:52 +0000 (14:03 +0200)]
DRY up standby-mode script

4 years agoMake authorized_keys_path an optional argument to StandbyModeCommand
Marcin Kulik [Tue, 16 Jul 2013 11:22:16 +0000 (13:22 +0200)]
Make authorized_keys_path an optional argument to StandbyModeCommand

4 years agoFix SshKeyFile#truncate! to neither create a new file nor crash
Marcin Kulik [Tue, 16 Jul 2013 10:59:09 +0000 (12:59 +0200)]
Fix SshKeyFile#truncate! to neither create a new file nor crash

4 years agoLoad rails environment in standby-mode script
Marcin Kulik [Tue, 16 Jul 2013 10:58:27 +0000 (12:58 +0200)]
Load rails environment in standby-mode script

4 years agoMake the regenerate_ssh_keys script use SshKeyFile.regenerate
Marcin Kulik [Tue, 16 Jul 2013 10:42:59 +0000 (12:42 +0200)]
Make the regenerate_ssh_keys script use SshKeyFile.regenerate

4 years agoMake the EnableStandbyModeCommand inherit from StandbyModeCommand
Marcin Kulik [Tue, 16 Jul 2013 10:42:26 +0000 (12:42 +0200)]
Make the EnableStandbyModeCommand inherit from StandbyModeCommand

4 years agoMove standby mode disabling code to a separate command object
Marcin Kulik [Tue, 16 Jul 2013 10:41:40 +0000 (12:41 +0200)]
Move standby mode disabling code to a separate command object

4 years agoMove standby mode enabling code to a separate command object
Marcin Kulik [Mon, 15 Jul 2013 17:30:27 +0000 (19:30 +0200)]
Move standby mode enabling code to a separate command object

4 years agoAdd script for managing standby mode
Marcin Kulik [Mon, 15 Jul 2013 13:48:36 +0000 (15:48 +0200)]
Add script for managing standby mode

This puts the current gitorious instance into the master or slave mode.
Used when mirroring of the git repositories is configured.

4 years agoUpdate Copyright comments
Marcin Kulik [Fri, 12 Jul 2013 11:41:11 +0000 (13:41 +0200)]
Update Copyright comments

4 years agoMake RepositoryDeletionProcessor mirror the deletion
Marcin Kulik [Fri, 12 Jul 2013 11:34:04 +0000 (13:34 +0200)]
Make RepositoryDeletionProcessor mirror the deletion

4 years agoAdd test for RepositoryDeletionProcessor
Marcin Kulik [Fri, 12 Jul 2013 11:32:34 +0000 (13:32 +0200)]
Add test for RepositoryDeletionProcessor

4 years agoRemove unused variable
Marcin Kulik [Fri, 12 Jul 2013 11:14:50 +0000 (13:14 +0200)]
Remove unused variable

4 years agoMake the push processor mirror the repository changes
Marcin Kulik [Fri, 12 Jul 2013 11:09:59 +0000 (13:09 +0200)]
Make the push processor mirror the repository changes

4 years agoMake real_gitdir an accessor on fake Repository class
Marcin Kulik [Fri, 12 Jul 2013 10:52:12 +0000 (12:52 +0200)]
Make real_gitdir an accessor on fake Repository class

4 years agoFix spelling of "--git-dir" in MirrorManager
Marcin Kulik [Fri, 12 Jul 2013 10:46:46 +0000 (12:46 +0200)]
Fix spelling of "--git-dir" in MirrorManager

4 years agoMake MirrorManager#delete_repository just get the repository path
Marcin Kulik [Fri, 12 Jul 2013 10:43:18 +0000 (12:43 +0200)]
Make MirrorManager#delete_repository just get the repository path

We can't pass the repository object here because the record doesn't
exist anymore.

4 years agoCall mirroring operations from repository create and clone processors
Marcin Kulik [Fri, 12 Jul 2013 08:29:04 +0000 (10:29 +0200)]
Call mirroring operations from repository create and clone processors

4 years agoAdd clone and delete operation support to MirrorManager
Marcin Kulik [Thu, 11 Jul 2013 08:11:42 +0000 (10:11 +0200)]
Add clone and delete operation support to MirrorManager

4 years agoAdd repository creation mirroring
Marcin Kulik [Thu, 11 Jul 2013 07:30:32 +0000 (09:30 +0200)]
Add repository creation mirroring

4 years agoRebuild indexes on backup restore
Pawel Pierzchala [Thu, 6 Feb 2014 15:55:11 +0000 (16:55 +0100)]
Rebuild indexes on backup restore

4 years agoFix site host name customization in mailer 258
Håkon Lerring [Thu, 6 Feb 2014 15:28:36 +0000 (16:28 +0100)]
Fix site host name customization in mailer

4 years agoFix too large number of pages on /projects
Pawel Pierzchala [Thu, 6 Feb 2014 14:11:24 +0000 (15:11 +0100)]
Fix too large number of pages on /projects

4 years agoImplement query for selecting members of a project
Pawel Pierzchala [Thu, 6 Feb 2014 11:16:28 +0000 (12:16 +0100)]
Implement query for selecting members of a project

4 years agoRemove dead code
Pawel Pierzchala [Thu, 6 Feb 2014 11:12:05 +0000 (12:12 +0100)]
Remove dead code

4 years agoPrevent removal group creator from the group
Marcin Kulik [Tue, 4 Feb 2014 14:16:08 +0000 (15:16 +0100)]
Prevent removal group creator from the group

4 years agoDon't crash activities page with a commit with an empty message
Marcin Kulik [Mon, 3 Feb 2014 14:42:45 +0000 (15:42 +0100)]
Don't crash activities page with a commit with an empty message

4 years agoFix path to wiki index in atom feed
Marcin Kulik [Mon, 3 Feb 2014 13:51:05 +0000 (14:51 +0100)]
Fix path to wiki index in atom feed

4 years agoMake super group additive
Pawel Pierzchala [Thu, 30 Jan 2014 15:28:47 +0000 (16:28 +0100)]
Make super group additive

4 years agoFix link for repository members removal
Pawel Pierzchala [Thu, 30 Jan 2014 11:03:40 +0000 (12:03 +0100)]
Fix link for repository members removal

4 years agoMake super group removable
Pawel Pierzchala [Fri, 24 Jan 2014 15:40:12 +0000 (16:40 +0100)]
Make super group removable

4 years agoAdd unit tests for committerships presenter
Pawel Pierzchala [Fri, 24 Jan 2014 13:00:12 +0000 (14:00 +0100)]
Add unit tests for committerships presenter

4 years agoClean up CommittershipPresenter
Pawel Pierzchala [Fri, 24 Jan 2014 11:34:42 +0000 (12:34 +0100)]
Clean up CommittershipPresenter

4 years agoCreate CommittershipPresnter in controller
Pawel Pierzchala [Fri, 24 Jan 2014 11:16:34 +0000 (12:16 +0100)]
Create CommittershipPresnter in controller

4 years agoClean up committership presentation logic
Pawel Pierzchala [Fri, 24 Jan 2014 11:11:54 +0000 (12:11 +0100)]
Clean up committership presentation logic

4 years agoMerge commit 'refs/merge-requests/257' of git://gitorious.org/gitorious/mainline...
Pawel Pierzchala [Thu, 23 Jan 2014 15:52:27 +0000 (16:52 +0100)]
Merge commit 'refs/merge-requests/257' of git://gitorious.org/gitorious/mainline into merge-requests/257

4 years agoAdd enable_super_group option
Pawel Pierzchala [Thu, 23 Jan 2014 15:41:22 +0000 (16:41 +0100)]
Add enable_super_group option

4 years agoUse RepositoryCommitterships in Repository#committerships
Pawel Pierzchala [Thu, 23 Jan 2014 12:27:42 +0000 (13:27 +0100)]
Use RepositoryCommitterships in Repository#committerships

4 years agoDon't access Committership scopes directly
Pawel Pierzchala [Thu, 23 Jan 2014 11:24:35 +0000 (12:24 +0100)]
Don't access Committership scopes directly

4 years agoUse GroupCommitterships instead in group.committerships
Pawel Pierzchala [Thu, 23 Jan 2014 11:19:07 +0000 (12:19 +0100)]
Use GroupCommitterships instead in group.committerships

4 years agoReplace all access to User#committerships with UserCommitterships
Pawel Pierzchala [Thu, 23 Jan 2014 11:02:31 +0000 (12:02 +0100)]
Replace all access to User#committerships with UserCommitterships