# HG changeset patch # User Marcin Kuzminski # Date 2013-05-20 13:04:34 # Node ID a228a33d868e7deb7c267e00f58d27c8e0d73f15 # Parent 7d29355db6f44802d3af3c37b3139e97201ed30c Fake post-push actions when doing git fetch. It's still want show what revisions we fetched but at least we trigger the action diff --git a/rhodecode/model/scm.py b/rhodecode/model/scm.py --- a/rhodecode/model/scm.py +++ b/rhodecode/model/scm.py @@ -504,6 +504,14 @@ class ScmModel(BaseModel): 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')