~milo/linaro-patchmetrics/bug1012538

« back to all changes in this revision

Viewing changes to apps/patchwork/utils.py

  • Committer: Milo Casagrande
  • Date: 2012-06-18 14:37:25 UTC
  • mto: This revision was merged to the branch mainline in revision 361.
  • Revision ID: milo@ubuntu.com-20120618143725-gq24bnys62f533bf
Removed stderr on git clone operation, remove HEAD ref on git pull.

Show diffs side-by-side

added added

removed removed

Lines of Context:
187
187
 
188
188
    if os.path.exists(root):
189
189
        proc = subprocess.Popen(
190
 
            ['git', 'pull', 'origin', 'HEAD'], cwd=root,
 
190
            ['git', 'pull', 'origin'], cwd=root,
191
191
            stdout=subprocess.PIPE, stderr=subprocess.PIPE)
192
192
    else:
193
193
        proc = subprocess.Popen(
194
194
            ['git', 'clone', project.source_tree, root],
195
 
            stdout=subprocess.PIPE, stderr=subprocess.PIPE)
 
195
            stdout=subprocess.PIPE)
196
196
 
197
197
    wait = 0
198
198
    wait_increment = 5