From fd8b6d5e0763d1c7348f6db9c681c1b2d1308f37 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Fri, 16 Dec 2016 14:12:59 -0500 Subject: Set Ruby search path appropriately --- git-mirror-cgit | 1 + git-mirror-gitlab-ce | 1 + git-mirror-gitlab-ee | 1 + 3 files changed, 3 insertions(+) diff --git a/git-mirror-cgit b/git-mirror-cgit index 3a953b2..b932788 100755 --- a/git-mirror-cgit +++ b/git-mirror-cgit @@ -1,6 +1,7 @@ #!/usr/bin/env ruby # coding: utf-8 +$:.unshift File.dirname(__FILE__) load 'git-mirror-backend.rb' require 'uri' require 'open-uri' diff --git a/git-mirror-gitlab-ce b/git-mirror-gitlab-ce index ed45aec..87477ff 100755 --- a/git-mirror-gitlab-ce +++ b/git-mirror-gitlab-ce @@ -3,6 +3,7 @@ # TODO: add 'owner' to get/set_meta +$:.unshift File.dirname(__FILE__) load 'git-mirror-backend.rb' load 'libremessages.rb' require 'net/http' diff --git a/git-mirror-gitlab-ee b/git-mirror-gitlab-ee index 425bb48..80a6d37 100755 --- a/git-mirror-gitlab-ee +++ b/git-mirror-gitlab-ee @@ -14,6 +14,7 @@ # pretty clean, except that screen-scraping the reads (via nokogiri) # is gross, and that the error messages are unhelpful. +$:.unshift File.dirname(__FILE__) load 'git-mirror-gitlab-ce' require 'net/http' require 'uri' -- cgit v1.2.3-54-g00ecf