summaryrefslogtreecommitdiff
path: root/git-mirror-gitlab-ce
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2017-04-19 12:55:24 -0400
committerLuke Shumaker <lukeshu@lukeshu.com>2017-04-19 12:55:24 -0400
commit31933c806f2041cd95b1d863bee31b35a642fd35 (patch)
treee2eebcba6f92b8e656f57709ad7528610920624d /git-mirror-gitlab-ce
parent6526d636349bd730507af8c526e5f1e138f2a475 (diff)
Add changes that had been staged on my server but never committed.
Diffstat (limited to 'git-mirror-gitlab-ce')
-rwxr-xr-xgit-mirror-gitlab-ce5
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")