Replace build in home folder with environment

You can't ever assume that user's home is /home/$USERNAME or /home/git

Preferable is to assume that user running gitlab-shell has repositories in his home (get from the environment).
added support for redis password
Fix spec for GitlabConfig.gitlab_url.
use abort isntead of raise when checking path
Merge branch 'abort-check-path' into 'master'

Abort check path

Fixes #13

See merge request !35
update changelog
Merge branch 'update-changelog' into 'master'

Update changelog

in light of !35

See merge request !36
Handle invalid number of arguments

When a remote user with a valid SSH key runs something like 'ssh
git@gitlab.example.com foobar', gitlab-shell would raise an exception in
the GitlabShell#escape_path method. With this change, we catch an
invalid number of arguments as soon as possible and exit.
Use a different style of one-line classes
Security issue: imported URLs are stored along with password.
Merge branch 'wrong_number_of_arguments' into 'master'

Handle invalid number of arguments

See merge request !37
Merge branch 'master' of github.com:gitlabhq/gitlab-shell
Add new pre-receive and post-receive hooks

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
GitlabAccess and GitlabPostReceive classes added

Gitlab Access handles security check. GitlabPostReceive creates a sidekiq job

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Add tests for GitlabPostReceive

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Remove update hook logic

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Version 2.0.0.pre. Requires GitLab 7.3+

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Update GitlabNet to match new logic

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Merge branch 'hooks-refactoring' into 'master'

Hooks refactoring

* replace update hook with pre-receive & post-receive hooks
* use pre-receive hook for authorisation
* use post-receive hook to create background job for GitLab worker

Related to https://dev.gitlab.org/gitlab/gitlabhq/issues/1516

See merge request !38
GitLab /api/allowed endpoint requires POST request

This commit made changes to GitLab shell to work with huge pushed (ex.
1k branhes) using POST request to API

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>