Permalink
Browse files

Propegated some known bugs from our opensource site to this project

  • Loading branch information...
1 parent 239121b commit 912e576efebf0b9938800ccf0c304eb3ed827478 Corey Oordt committed Jan 5, 2010
Showing with 4 additions and 3 deletions.
  1. +2 −2 repositories/models.py
  2. +2 −1 repositories/vcs.py
View
@@ -356,8 +356,8 @@ def update_remote(sender, current_rev, previous_rev, **kwargs):
revisions in between, depending on the checking frequency
:type previous_rev: ``string``
"""
- for remote_repo in sender.remotesourcerepositories_set.all():
- remote_repo._vcs.update_remote(name=remote_repo.name, branch=remote_repo.branch)
+ for remote_repo in sender.remotesourcerepository_set.all():
+ sender._vcs.update_remote(name=remote_repo.name, branch=remote_repo.branch)
from signals import repository_changed
repository_changed.connect(update_remote)
View
@@ -215,7 +215,8 @@ def update_remote(self, name, branch=None):
the_branch = branch or "master"
cmd = ["cd %s;git push %s %s" % (repo_path, name, branch)]
try:
- subprocess.check_call(cmd, shell=True)
+ subproc = subprocess.Popen(cmd, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
+ output = subproc.communicate()
except:
pass

0 comments on commit 912e576

Please sign in to comment.