summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--project.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/project.py b/project.py
index 29f6b1e8..f838c6f4 100644
--- a/project.py
+++ b/project.py
@@ -1026,10 +1026,11 @@ class Project(object):
1026 if GitCommand(self, cmd, bare=True).Wait() != 0: 1026 if GitCommand(self, cmd, bare=True).Wait() != 0:
1027 raise UploadError('Upload failed') 1027 raise UploadError('Upload failed')
1028 1028
1029 msg = "posted to %s for %s" % (branch.remote.review, dest_branch) 1029 if not dryrun:
1030 self.bare_git.UpdateRef(R_PUB + branch.name, 1030 msg = "posted to %s for %s" % (branch.remote.review, dest_branch)
1031 R_HEADS + branch.name, 1031 self.bare_git.UpdateRef(R_PUB + branch.name,
1032 message=msg) 1032 R_HEADS + branch.name,
1033 message=msg)
1033 1034
1034# Sync ## 1035# Sync ##
1035 def _ExtractArchive(self, tarpath, path=None): 1036 def _ExtractArchive(self, tarpath, path=None):