changeset 3880:a228a33d868e beta

Fake post-push actions when doing git fetch. It's still want show what revisions we fetched but at least we trigger the action
author Marcin Kuzminski <marcin@python-works.com>
date Mon, 20 May 2013 13:04:34 +0200
parents 7d29355db6f4
children 6b21a93da5bc
files rhodecode/model/scm.py
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/rhodecode/model/scm.py	Mon May 20 02:34:03 2013 +0200
+++ b/rhodecode/model/scm.py	Mon May 20 13:04:34 2013 +0200
@@ -504,6 +504,14 @@
         try:
             if repo.alias == 'git':
                 repo.fetch(clone_uri)
+                # git doesn't really have something like post-fetch action
+                # we fake that now. #TODO: extract fetched revisions somehow
+                # here
+                self._handle_push(repo,
+                                  username=username,
+                                  action='push_remote',
+                                  repo_name=repo_name,
+                                  revisions=[])
             else:
                 self._handle_rc_scm_extras(username, dbrepo.repo_name,
                                            repo.alias, action='push_remote')