Skip to content

Commit

Permalink
Fixes #186. Python3 incompatibility.
Browse files Browse the repository at this point in the history
  • Loading branch information
Philip Thompson committed Oct 16, 2014
1 parent a81ebd8 commit 81eee59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ccmlib/repository.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ def clone_development(version, verbose=False):
out = subprocess.call(['git', 'fetch', 'origin'], cwd=target_dir, stdout=lf, stderr=lf)
assert out == 0, "Could not do a git fetch"
status = subprocess.Popen(['git', 'status', '-sb'], cwd=target_dir, stdout=subprocess.PIPE, stderr=lf).communicate()[0]
if status.find('[behind') > -1:
if str(status).find('[behind') > -1:
if verbose:
print_("Branch is behind, recompiling")
out = subprocess.call(['git', 'pull'], cwd=target_dir, stdout=lf, stderr=lf)
Expand Down

0 comments on commit 81eee59

Please sign in to comment.