gitorious:mainline.git
3 years agoUpdate release data of 3.2 v3.2.0
Marcin Kulik [Thu, 4 Dec 2014 10:04:44 +0000 (10:04 +0000)]
Update release data of 3.2

3 years agoUpdate changelog - http cloning is waaay faster now
Marcin Kulik [Wed, 3 Dec 2014 12:06:41 +0000 (13:06 +0100)]
Update changelog - http cloning is waaay faster now

3 years agoFix typo
Marcin Kulik [Wed, 3 Dec 2014 12:02:36 +0000 (12:02 +0000)]
Fix typo

3 years agoCorrect 3.2 release date
Marcin Kulik [Wed, 3 Dec 2014 10:35:33 +0000 (10:35 +0000)]
Correct 3.2 release date

3 years agoUpdate changelog
Marcin Kulik [Wed, 3 Dec 2014 10:33:09 +0000 (10:33 +0000)]
Update changelog

3 years agoUse high port number for forwarding https
Marcin Kulik [Wed, 3 Dec 2014 10:08:50 +0000 (10:08 +0000)]
Use high port number for forwarding https

3 years agoUse pluggable authentication in users internal API
Marcin Kulik [Tue, 2 Dec 2014 14:57:55 +0000 (14:57 +0000)]
Use pluggable authentication in users internal API

3 years agoUpdate Rails to 3.2.21
Marcin Kulik [Tue, 2 Dec 2014 10:45:28 +0000 (10:45 +0000)]
Update Rails to 3.2.21

3 years agoEnable git daemon URLs for tests
Marcin Kulik [Tue, 2 Dec 2014 10:05:03 +0000 (10:05 +0000)]
Enable git daemon URLs for tests

3 years agoRegenerate authorized_keys as part of upgrade rake task
Marcin Kulik [Mon, 1 Dec 2014 15:59:42 +0000 (15:59 +0000)]
Regenerate authorized_keys as part of upgrade rake task

3 years agoAdd rake task for upgrades (schema+data)
Marcin Kulik [Mon, 1 Dec 2014 14:09:00 +0000 (14:09 +0000)]
Add rake task for upgrades (schema+data)

3 years agoMake admin seed idempotent
Marcin Kulik [Mon, 1 Dec 2014 13:59:38 +0000 (13:59 +0000)]
Make admin seed idempotent

3 years agoFix license comment
Marcin Kulik [Mon, 1 Dec 2014 13:53:21 +0000 (13:53 +0000)]
Fix license comment

3 years agoUpdate sample config file to reflect actual defaults
Marcin Kulik [Fri, 28 Nov 2014 16:36:06 +0000 (17:36 +0100)]
Update sample config file to reflect actual defaults

3 years agoDisable git-daemon URLs by default
Marcin Kulik [Fri, 28 Nov 2014 16:34:54 +0000 (17:34 +0100)]
Disable git-daemon URLs by default

git:// is not a secure protocol and should be used.

3 years agoSimplify wrapper scripts
Marcin Kulik [Wed, 26 Nov 2014 15:39:20 +0000 (15:39 +0000)]
Simplify wrapper scripts

3 years agoBump version
Marcin Kulik [Wed, 26 Nov 2014 14:16:52 +0000 (15:16 +0100)]
Bump version

3 years agoMonitor app with skylight.io
Marcin Kulik [Tue, 25 Nov 2014 13:17:29 +0000 (13:17 +0000)]
Monitor app with skylight.io

3 years agoAlways skip session in internal APIs, even when in private mode
Marcin Kulik [Fri, 21 Nov 2014 09:15:36 +0000 (09:15 +0000)]
Always skip session in internal APIs, even when in private mode

3 years agoDon't require session in internal API
Marcin Kulik [Thu, 20 Nov 2014 12:11:47 +0000 (12:11 +0000)]
Don't require session in internal API

3 years agoRevert "Request basic auth when auth required for all formats except html"
Marcin Kulik [Thu, 20 Nov 2014 12:08:43 +0000 (12:08 +0000)]
Revert "Request basic auth when auth required for all formats except html"

This reverts commit c07af02da527acb36db7caab3461600c94c9739e.
It was showing basic auth dialog in instances with public mode off when
user was not logged and accessed homepage. We need solve that somehow
differently.

3 years agoExport RACK_ENV so Sinatra gets proper env under Unicorn
Marcin Kulik [Thu, 13 Nov 2014 12:53:40 +0000 (12:53 +0000)]
Export RACK_ENV so Sinatra gets proper env under Unicorn

3 years agoUse https url for ui3 submodule
Marcin Kulik [Wed, 22 Oct 2014 11:31:52 +0000 (13:31 +0200)]
Use https url for ui3 submodule

3 years agoEnsure Content-Length is set for graph API response
Marcin Kulik [Wed, 22 Oct 2014 11:03:42 +0000 (13:03 +0200)]
Ensure Content-Length is set for graph API response

... to make it cacheable.

3 years agoMake seeds idempotent
Marcin Kulik [Thu, 16 Oct 2014 15:54:24 +0000 (17:54 +0200)]
Make seeds idempotent

3 years agoExit sphinx foreground task with child process exit code
Marcin Kulik [Thu, 16 Oct 2014 09:07:22 +0000 (11:07 +0200)]
Exit sphinx foreground task with child process exit code

3 years agoFix archive cache and tmp paths for Docker container
Marcin Kulik [Wed, 15 Oct 2014 15:11:58 +0000 (17:11 +0200)]
Fix archive cache and tmp paths for Docker container

3 years agoEnforce user to "git" when running in Docker
Marcin Kulik [Wed, 15 Oct 2014 15:10:22 +0000 (17:10 +0200)]
Enforce user to "git" when running in Docker

3 years agoAdd script for starting thinking-sphinx
Marcin Kulik [Mon, 13 Oct 2014 15:09:47 +0000 (17:09 +0200)]
Add script for starting thinking-sphinx

3 years agoRevert "No need for upstream definitions" and "Set DNS resolver for Nginx"
Marcin Kulik [Mon, 13 Oct 2014 15:46:19 +0000 (17:46 +0200)]
Revert "No need for upstream definitions" and "Set DNS resolver for Nginx"

Dynamic resolving in Nginx requires specifying DNS resolver, which in
turn requires a real DNS server on the host (to resolve from /etc/hosts
populated by Docker). This complicates the setup so we revert back to
static (on startup) resolving.

This is problematic for restarting of linked containers where IP of a
dependent container may change.

Next version of Docker (1.4) is supposed to have "fixed network
configuration" ability for containers which will solve the restart
issue.

3 years agoSet DNS resolver for Nginx
Marcin Kulik [Mon, 13 Oct 2014 15:23:30 +0000 (17:23 +0200)]
Set DNS resolver for Nginx

3 years agoNo need for upstream definitions
Marcin Kulik [Mon, 13 Oct 2014 14:08:34 +0000 (16:08 +0200)]
No need for upstream definitions

upstreams make sense when you have server groups with more than 1 server
in each. Also, directly using hostnames in proxy_pass directives
(together with a variable, like $request_uri) makes Nginx resolve
hostnames dynamically, on each request instead of only on startup.

3 years agoUse hostnames instead of env vars
Marcin Kulik [Fri, 10 Oct 2014 15:31:44 +0000 (17:31 +0200)]
Use hostnames instead of env vars

/etc/hosts is updated for all linked containers when a given container
is restarted. Refering by hostname has been in Docker for quite a while
so it doesn't require very new Docker version. However Docker 1.3
updates /etc/hosts of all linked containers with the new IP when given
container is restarted.

3 years agoMake comments more clear
Marcin Kulik [Fri, 10 Oct 2014 14:52:30 +0000 (16:52 +0200)]
Make comments more clear

3 years agoDefault web addr/port to localhost:3000 in Nginx conf
Marcin Kulik [Fri, 10 Oct 2014 14:49:13 +0000 (16:49 +0200)]
Default web addr/port to localhost:3000 in Nginx conf

3 years agoAdd Docker configuration for Nginx
Marcin Kulik [Fri, 10 Oct 2014 14:07:17 +0000 (16:07 +0200)]
Add Docker configuration for Nginx

3 years agoAdd Dockerfile and related files. Yay!
Marcin Kulik [Thu, 9 Oct 2014 14:26:38 +0000 (16:26 +0200)]
Add Dockerfile and related files. Yay!

3 years agoRemove dealing with user switching from git-proxy
Marcin Kulik [Fri, 10 Oct 2014 08:59:31 +0000 (10:59 +0200)]
Remove dealing with user switching from git-proxy

3 years agoWe're not really interested in building on Ruby 1.9 anymore
Marcin Kulik [Wed, 8 Oct 2014 13:52:34 +0000 (15:52 +0200)]
We're not really interested in building on Ruby 1.9 anymore

3 years agoMake commit comment json presenter markdown rendering work consistently across OSes
Marcin Kulik [Wed, 8 Oct 2014 13:47:32 +0000 (15:47 +0200)]
Make commit comment json presenter markdown rendering work consistently across OSes

3 years agoSet hostname to the one expected by integration tests
Marcin Kulik [Wed, 8 Oct 2014 13:38:45 +0000 (15:38 +0200)]
Set hostname to the one expected by integration tests

3 years agoLoad db schema for travis build
Marcin Kulik [Wed, 8 Oct 2014 12:34:17 +0000 (14:34 +0200)]
Load db schema for travis build

3 years agoUse absolute path to config file when symlinking
Marcin Kulik [Wed, 8 Oct 2014 11:28:52 +0000 (13:28 +0200)]
Use absolute path to config file when symlinking

3 years agoUse test/gitorious.yml during builds
Marcin Kulik [Wed, 8 Oct 2014 11:09:30 +0000 (13:09 +0200)]
Use test/gitorious.yml during builds

3 years agoAdd db config file for travis
Marcin Kulik [Wed, 8 Oct 2014 10:30:42 +0000 (12:30 +0200)]
Add db config file for travis

3 years agoActually include resque bundler group in build
Marcin Kulik [Wed, 8 Oct 2014 10:27:30 +0000 (12:27 +0200)]
Actually include resque bundler group in build

3 years agoAdd travis build configuration file
Marcin Kulik [Wed, 8 Oct 2014 10:09:37 +0000 (12:09 +0200)]
Add travis build configuration file

3 years agoRemove legacy markdown configuration
Marcin Kulik [Tue, 7 Oct 2014 15:39:30 +0000 (17:39 +0200)]
Remove legacy markdown configuration

3 years agoFix tests
Marcin Kulik [Tue, 7 Oct 2014 15:04:35 +0000 (17:04 +0200)]
Fix tests

3 years agoUse RedCarpet for rendering project and group descriptions, also wikis
Marcin Kulik [Tue, 7 Oct 2014 15:02:24 +0000 (17:02 +0200)]
Use RedCarpet for rendering project and group descriptions, also wikis

3 years agoUse latest libdolt (with fixed "last commit" for paths with spaces)
Marcin Kulik [Tue, 7 Oct 2014 11:27:07 +0000 (13:27 +0200)]
Use latest libdolt (with fixed "last commit" for paths with spaces)

3 years agoBe more explicit about repository id key
Marcin Kulik [Mon, 6 Oct 2014 13:37:50 +0000 (15:37 +0200)]
Be more explicit about repository id key

3 years agoDon't force Rails.root/data/hooks -> repositories_root/.hooks symlink
Marcin Kulik [Mon, 6 Oct 2014 09:30:46 +0000 (11:30 +0200)]
Don't force Rails.root/data/hooks -> repositories_root/.hooks symlink

Hooks have been removed from this repository and place in
https://gitorious.org/gitorious/gitorious-proto . Symlinking of hooks
dir into repositories_root/.hooks is a responsibility of the
installation script.

3 years agoRevert "Set GITORIOUS_REPOSITORY_ID when locally pushing to merge req refs"
Marcin Kulik [Mon, 6 Oct 2014 09:03:22 +0000 (11:03 +0200)]
Revert "Set GITORIOUS_REPOSITORY_ID when locally pushing to merge req refs"

This is not needed because as of now both pre and post-receive hooks
don't do anything for local pushes. It is responsibility of the code
that makes a local push to do any needed post-push processing.

This reverts commit 0b18f288bc210a1ade19427ea1b9e5f14bba64ea.

3 years agoMove hooks to https://gitorious.org/gitorious/gitorious-proto
Marcin Kulik [Fri, 3 Oct 2014 10:25:06 +0000 (12:25 +0200)]
Move hooks to https://gitorious.org/gitorious/gitorious-proto

3 years agoRemove diagnostics functionality
Marcin Kulik [Thu, 2 Oct 2014 14:22:42 +0000 (16:22 +0200)]
Remove diagnostics functionality

Gitorious web app is going to be deployed in Docker containers. That
means it won't have access to the outside of a container and thus won't
be able to reliably probe for status of other processes or other system
information.

Also, it should only act as a web frontend and management solution for
repositories (and related entities). Monitoring is better solved by
existing tools like Nagios, Munin or similar.

3 years agoDisplay link to users management for admin users
Marcin Kulik [Thu, 2 Oct 2014 13:49:46 +0000 (15:49 +0200)]
Display link to users management for admin users

3 years agoAutomatically accept license for users created by admin on non-gitorious.org instances
Marcin Kulik [Thu, 2 Oct 2014 13:48:25 +0000 (15:48 +0200)]
Automatically accept license for users created by admin on non-gitorious.org instances

3 years agoDisplay "Users" as a first tab in admin panel
Marcin Kulik [Thu, 2 Oct 2014 13:39:53 +0000 (15:39 +0200)]
Display "Users" as a first tab in admin panel

3 years agoCreate admin user when seeding the database
Marcin Kulik [Thu, 2 Oct 2014 11:46:07 +0000 (13:46 +0200)]
Create admin user when seeding the database

3 years agoRemove project_memberships from schema file, it's been renamed to content_memberships
Marcin Kulik [Thu, 2 Oct 2014 11:12:56 +0000 (13:12 +0200)]
Remove project_memberships from schema file, it's been renamed to content_memberships

3 years agoRemove real_path from repo config json, it's obsoleted by full_path
Marcin Kulik [Thu, 2 Oct 2014 10:51:41 +0000 (12:51 +0200)]
Remove real_path from repo config json, it's obsoleted by full_path

3 years agoExpose full absolute repo path in repo configuration
Marcin Kulik [Thu, 2 Oct 2014 10:26:25 +0000 (12:26 +0200)]
Expose full absolute repo path in repo configuration

3 years agoDelete unused code
Marcin Kulik [Fri, 26 Sep 2014 13:49:44 +0000 (15:49 +0200)]
Delete unused code

3 years agoCreate push events with proper creation time
Marcin Kulik [Tue, 30 Sep 2014 09:51:24 +0000 (11:51 +0200)]
Create push events with proper creation time

3 years agoMake it clear why we have /login/http route
Marcin Kulik [Tue, 30 Sep 2014 09:07:35 +0000 (11:07 +0200)]
Make it clear why we have /login/http route

3 years agoRequire authenticated user for account removal
Marcin Kulik [Tue, 30 Sep 2014 09:06:49 +0000 (11:06 +0200)]
Require authenticated user for account removal

3 years agoSet GITORIOUS_REPOSITORY_ID when locally pushing to merge req refs
Marcin Kulik [Mon, 29 Sep 2014 15:38:08 +0000 (17:38 +0200)]
Set GITORIOUS_REPOSITORY_ID when locally pushing to merge req refs

3 years agoUse repository id instead of repo path when executing hooks
Marcin Kulik [Mon, 29 Sep 2014 14:52:27 +0000 (16:52 +0200)]
Use repository id instead of repo path when executing hooks

3 years agoFix order of repository lookup
Marcin Kulik [Fri, 26 Sep 2014 16:32:46 +0000 (18:32 +0200)]
Fix order of repository lookup

3 years agoUse repository id in requests to hooks API
Marcin Kulik [Fri, 26 Sep 2014 16:00:21 +0000 (18:00 +0200)]
Use repository id in requests to hooks API

repo_path is left temporarily to allow smooth deployment. Will be
removed in next commit.

3 years agoTemporarily look for repository by both hashed and public paths
Marcin Kulik [Fri, 26 Sep 2014 11:51:43 +0000 (13:51 +0200)]
Temporarily look for repository by both hashed and public paths

3 years agoPush processor should expect gitdir to be a "public" repo path
Marcin Kulik [Fri, 26 Sep 2014 11:43:08 +0000 (13:43 +0200)]
Push processor should expect gitdir to be a "public" repo path

3 years agoRespond with 404 when no repository found
Marcin Kulik [Fri, 26 Sep 2014 10:36:07 +0000 (12:36 +0200)]
Respond with 404 when no repository found

3 years agoMake user authentication API an internal one
Marcin Kulik [Wed, 24 Sep 2014 10:41:39 +0000 (12:41 +0200)]
Make user authentication API an internal one

3 years agoFix test description
Marcin Kulik [Wed, 24 Sep 2014 08:59:36 +0000 (10:59 +0200)]
Fix test description

3 years agoRaise ActiveRecord::RecordNotFound rather than NoMethodError in find_by_path
Marcin Kulik [Wed, 24 Sep 2014 08:56:30 +0000 (10:56 +0200)]
Raise ActiveRecord::RecordNotFound rather than NoMethodError in find_by_path

3 years agoAdd for finding repo by relative ("project/repo.git") path
Marcin Kulik [Wed, 24 Sep 2014 08:42:43 +0000 (10:42 +0200)]
Add for finding repo by relative ("project/repo.git") path

3 years agoURL-encode all params sent to internal hooks API
Marcin Kulik [Tue, 23 Sep 2014 13:59:40 +0000 (15:59 +0200)]
URL-encode all params sent to internal hooks API

3 years agoUpdate hooks to rely only on API and ENV vars
Marcin Kulik [Tue, 23 Sep 2014 12:16:59 +0000 (14:16 +0200)]
Update hooks to rely only on API and ENV vars

This change makes the hooks very slim, having almost no logic
themselves. Permissions are checked via the internal hooks API, custom
hooks paths are taken from GITORIOUS_CUSTOM_* env vars.

This also simplifies deployment - no need for ruby/chruby on the host machine,
allows usage of Docker containers running the app/API.

3 years agoMake guard clauses more readable
Marcin Kulik [Tue, 23 Sep 2014 12:08:03 +0000 (14:08 +0200)]
Make guard clauses more readable

3 years agoFix double "??" in the name of the called policy method
Marcin Kulik [Tue, 23 Sep 2014 11:45:00 +0000 (13:45 +0200)]
Fix double "??" in the name of the called policy method

3 years agoBe more explicit in error message about denied push
Marcin Kulik [Tue, 23 Sep 2014 11:43:19 +0000 (13:43 +0200)]
Be more explicit in error message about denied push

3 years agoPrevent creation of merge requests with pushes
Marcin Kulik [Tue, 23 Sep 2014 11:40:04 +0000 (13:40 +0200)]
Prevent creation of merge requests with pushes

That's the existing behavior, which was broken in previous commit, and
which we want to preserve.

3 years agopre/post-receive APIs
Marcin Kulik [Fri, 19 Sep 2014 13:48:11 +0000 (15:48 +0200)]
pre/post-receive APIs

4 years agoRespond with 403 when no access to repo configuration
Marcin Kulik [Fri, 19 Sep 2014 13:47:14 +0000 (15:47 +0200)]
Respond with 403 when no access to repo configuration

4 years agoAdd new API for obtaining repository configuration (path, clone urls, custom hooks)
Marcin Kulik [Tue, 9 Sep 2014 10:40:11 +0000 (12:40 +0200)]
Add new API for obtaining repository configuration (path, clone urls, custom hooks)

4 years agoAdd API for getting user information
Marcin Kulik [Mon, 8 Sep 2014 12:57:51 +0000 (14:57 +0200)]
Add API for getting user information

Right now it responds only with username, as this is the only
requirement of gitorious-http-backend. It may be extended to return more
information in the future.

4 years agoRequest basic auth when auth required for all formats except html
Marcin Kulik [Mon, 8 Sep 2014 12:57:12 +0000 (14:57 +0200)]
Request basic auth when auth required for all formats except html

4 years agoAdd missing copyright header
Marcin Kulik [Mon, 8 Sep 2014 12:56:37 +0000 (14:56 +0200)]
Add missing copyright header

4 years agoUpload changelog once more
Marcin Kulik [Mon, 8 Sep 2014 11:11:47 +0000 (13:11 +0200)]
Upload changelog once more

4 years agoPrefer local custom hook to global ones
Marcin Kulik [Mon, 8 Sep 2014 11:05:36 +0000 (13:05 +0200)]
Prefer local custom hook to global ones

4 years agoUpdate changelog
Marcin Kulik [Mon, 8 Sep 2014 10:15:02 +0000 (12:15 +0200)]
Update changelog

4 years agoUpdate changelog
Marcin Kulik [Mon, 8 Sep 2014 10:11:50 +0000 (12:11 +0200)]
Update changelog

4 years agoAlso symlink messaging.rb
Marcin Kulik [Mon, 8 Sep 2014 09:17:41 +0000 (11:17 +0200)]
Also symlink messaging.rb

4 years agoMake the symlink relative to local hooks dir, not repository root
Marcin Kulik [Mon, 8 Sep 2014 09:11:37 +0000 (11:11 +0200)]
Make the symlink relative to local hooks dir, not repository root

4 years agoSymlink individual hooks to enable custom hooks *per repository*
Marcin Kulik [Mon, 8 Sep 2014 08:55:15 +0000 (10:55 +0200)]
Symlink individual hooks to enable custom hooks *per repository*

4 years agoMake current_user return nil instead of :false for guests
Marcin Kulik [Thu, 4 Sep 2014 18:33:03 +0000 (20:33 +0200)]
Make current_user return nil instead of :false for guests

4 years agoMake pre-commit hook to work on OSX
Marcin Kulik [Mon, 1 Sep 2014 09:42:47 +0000 (11:42 +0200)]
Make pre-commit hook to work on OSX

4 years agoUse bugsnag for error monitoring
Marcin Kulik [Mon, 1 Sep 2014 09:42:07 +0000 (11:42 +0200)]
Use bugsnag for error monitoring