diff options
Diffstat (limited to 'git-mirror-gitlab-ee')
-rwxr-xr-x | git-mirror-gitlab-ee | 7 |
1 files changed, 4 insertions, 3 deletions
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 |