diff options
Diffstat (limited to 'project.py')
-rw-r--r-- | project.py | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -1107,6 +1107,12 @@ class Project(object): | |||
1107 | if url.startswith("ssh://"): | 1107 | if url.startswith("ssh://"): |
1108 | cmd.append("--receive-pack=gerrit receive-pack") | 1108 | cmd.append("--receive-pack=gerrit receive-pack") |
1109 | 1109 | ||
1110 | # This stops git from pushing all reachable annotated tags when | ||
1111 | # push.followTags is configured. Gerrit does not accept any tags | ||
1112 | # pushed to a CL. | ||
1113 | if git_require((1, 8, 3)): | ||
1114 | cmd.append("--no-follow-tags") | ||
1115 | |||
1110 | for push_option in push_options or []: | 1116 | for push_option in push_options or []: |
1111 | cmd.append("-o") | 1117 | cmd.append("-o") |
1112 | cmd.append(push_option) | 1118 | cmd.append(push_option) |