Commit 8b6db0f7 authored by Kirill Smelkov's avatar Kirill Smelkov

Revert "Merge branch 'use-load-path' into 'master'

This reverts commit ae498b6c, reversing
changes made to 79fdf65c.
parent 9f53a532
#!/usr/bin/env ruby
$:.unshift File.expand_path('../lib', __FILE__)
require 'gitlab_init'
require 'gitlab_net'
require_relative '../lib/gitlab_init'
require_relative '../lib/gitlab_net'
#
# GitLab shell check task
......
......@@ -4,9 +4,8 @@
#
# This script is used when restoring a GitLab backup.
$:.unshift File.expand_path('../lib', __FILE__)
require 'gitlab_init'
require 'gitlab_projects'
require_relative '../lib/gitlab_init'
require File.join(ROOT_PATH, 'lib', 'gitlab_projects')
Dir["#{GitlabConfig.new.repos_path}/*/*.git"].each do |repo|
begin
......
#!/usr/bin/env ruby
$:.unshift File.expand_path('../lib', __FILE__)
require 'gitlab_init'
require_relative '../lib/gitlab_init'
#
# GitLab Keys shell. Add/remove keys from ~/.ssh/authorized_keys
......
#!/usr/bin/env ruby
$:.unshift File.expand_path('../lib', __FILE__)
require 'gitlab_init'
require_relative '../lib/gitlab_init'
#
# GitLab Projects shell. Add/remove projects from /home/git/repositories
......
#!/usr/bin/env ruby
$:.unshift File.expand_path('../lib', __FILE__)
require 'gitlab_init'
require_relative '../lib/gitlab_init'
#
# GitLab shell, invoked from ~/.ssh/authorized_keys
......
if ENV['SHELL_ROOT_PATH'].nil? || ENV['SHELL_ROOT_PATH'].empty?
ROOT_PATH = File.expand_path(File.join(File.dirname(__FILE__), ".."))
else
ROOT_PATH = ENV['SHELL_ROOT_PATH']
end
ROOT_PATH = File.expand_path(File.join(File.dirname(__FILE__), ".."))
require_relative 'gitlab_config'
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment