From 71dc3b30449a4574455ff7eb9c390e30ad52ac4a Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Thu, 15 Dec 2016 16:01:03 -0500 Subject: fix (wip) --- git-mirror-gitlab-ee | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'git-mirror-gitlab-ee') diff --git a/git-mirror-gitlab-ee b/git-mirror-gitlab-ee index 5467e16..394a5f7 100755 --- a/git-mirror-gitlab-ee +++ b/git-mirror-gitlab-ee @@ -14,7 +14,7 @@ # pretty clean, except that screen-scraping the reads (via nokogiri) # is gross, and that the error messages are unhelpful. -load 'gitlab-ce' +load 'git-mirror-gitlab-ce' require 'net/http' require 'uri' require 'nokogiri' @@ -73,7 +73,7 @@ class GitLabEE < GitLabCE @cache.delete(:mirror_cookie) return URI(url) end - + def get_meta map = super map["mirror"] = self.mirrorURL.to_s @@ -89,10 +89,11 @@ class GitLabEE < GitLabCE else super(map) end + return nil end def repo_mode - return (self.mirrorURL.nil? ? "active" : "passive") + return (self.mirrorURL.nil? ? "passive" : "active") end end end -- cgit v1.2.3