From 31933c806f2041cd95b1d863bee31b35a642fd35 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Wed, 19 Apr 2017 12:55:24 -0400 Subject: Add changes that had been staged on my server but never committed. --- git-mirror-gitlab-ce | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'git-mirror-gitlab-ce') diff --git a/git-mirror-gitlab-ce b/git-mirror-gitlab-ce index 80f0b81..dc7a4db 100755 --- a/git-mirror-gitlab-ce +++ b/git-mirror-gitlab-ce @@ -125,6 +125,10 @@ class GitLabCE < GitMirrorBackend mismatch = false map.each do |key,val| if self.info[key].to_s != val.to_s + if !mismatch + libremessages('msg2', 'Updating general metadata') + end + libremessages('plain', '%q: %q -> %q', key, self.info[key].to_s, val.to_s) mismatch = true end end @@ -132,7 +136,6 @@ class GitLabCE < GitMirrorBackend libremessages('msg2', 'General metadata ok') return nil end - libremessages('msg2', 'Updating general metadata') req = Net::HTTP::Put.new(@gl.config['apiurl'] + "projects/" + CGI::escape(self.info["id"].to_s)) req.add_field("PRIVATE-TOKEN", @gl.config['apikey']) req.add_field("Content-Type", "application/json") -- cgit v1.2.3-2-g168b