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